Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
3f3f5d4a
Commit
3f3f5d4a
authored
Apr 28, 2020
by
Dominik Hebeler
Browse files
fixed same time
parent
9c804005
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdminInterface.php
View file @
3f3f5d4a
...
...
@@ -144,11 +144,6 @@ class AdminInterface extends Controller
$size
=
0
;
$count
=
0
;
$now
=
Carbon
::
now
()
->
subMinutes
(
Carbon
::
now
()
->
minute
%
5
)
->
format
(
'H:i'
);
if
(
$now
===
"00:00"
)
{
$now
=
"00:05"
;
}
foreach
(
$logs
as
$key
=>
$stats
)
{
if
(
$key
===
0
)
{
// Log for today
...
...
@@ -156,7 +151,16 @@ class AdminInterface extends Controller
continue
;
}
$insgesamt
=
empty
(
$stats
->
insgesamt
->
{
$interface
})
?
0
:
$stats
->
insgesamt
->
{
$interface
};
$sameTime
=
empty
(
$stats
->
time
->
{
$now
}
->
{
$interface
})
?
0
:
$stats
->
time
->
{
$now
}
->
{
$interface
};
$sameTime
=
0
;
$now
=
Carbon
::
now
();
$now
->
hour
=
0
;
$now
->
minute
=
0
;
$now
->
second
=
0
;
while
(
$now
->
lessThanOrEqualTo
(
Carbon
::
now
())){
$sameTime
+=
empty
(
$stats
->
time
->
{
$now
->
format
(
'H:i'
)}
->
{
$interface
})
?
0
:
$stats
->
time
->
{
$now
->
format
(
'H:i'
)}
->
{
$interface
};
$now
->
addMinutes
(
5
);
}
if
(
$insgesamt
>
$rekordTag
)
{
$rekordTag
=
$insgesamt
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment