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