|
|
@ -227,7 +227,7 @@ function pgtop($alert_marker, $info, $dotop, $user, $douser) |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
$min = round($sec / 60); |
|
|
|
$min = round($sec / 60); |
|
|
|
$hr = round($min / 60); |
|
|
|
$hr = floor($min / 60); |
|
|
|
$min -= ($hr * 60); |
|
|
|
$min -= ($hr * 60); |
|
|
|
$plb = $hr.'h'; |
|
|
|
$plb = $hr.'h'; |
|
|
|
if ($min > 0) |
|
|
|
if ($min > 0) |
|
|
@ -247,11 +247,16 @@ function pgtop($alert_marker, $info, $dotop, $user, $douser) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$sec = $now - $nlb; |
|
|
|
$sec = $now - $nlb; |
|
|
|
$min = floor($sec / 60); |
|
|
|
$min = floor($sec / 60); |
|
|
|
|
|
|
|
if ($min > 0) |
|
|
|
|
|
|
|
{ |
|
|
|
$nlb = $min.'m'; |
|
|
|
$nlb = $min.'m'; |
|
|
|
$s = $sec - $min * 60; |
|
|
|
$s = $sec - ($min * 60); |
|
|
|
if ($s > 0) |
|
|
|
if ($s > 0) |
|
|
|
$nlb .= " ${s}s"; |
|
|
|
$nlb .= " ${s}s"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
$nlb = "${sec}s"; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (isset($info['lastheight'])) |
|
|
|
if (isset($info['lastheight'])) |
|
|
|