mirror of
https://github.com/unraid/webgui.git
synced 2026-05-04 00:39:32 -05:00
Fixed: parity history sometimes wrongly processed
This commit is contained in:
@@ -136,7 +136,7 @@ function my_check($time, $speed) {
|
||||
$hour = floor($hmss/3600);
|
||||
$mins = $hmss/60%60;
|
||||
$secs = $hmss%60;
|
||||
return plus($days,'day',($hour|$mins|$secs)==0).plus($hour,'hour',($mins|$secs)==0).plus($mins,'minute',$secs==0).plus($secs,'second',true).". "._('Average speed').": ".($speed[-1]=='s' ? $speed : my_scale($speed,$unit,1)." $unit/s");
|
||||
return plus($days,'day',($hour|$mins|$secs)==0).plus($hour,'hour',($mins|$secs)==0).plus($mins,'minute',$secs==0).plus($secs,'second',true).". "._('Average speed').": ".(is_numeric($speed) ? my_scale($speed,$unit,1)." $unit/s" : $speed);
|
||||
}
|
||||
function my_error($code) {
|
||||
switch ($code) {
|
||||
|
||||
Reference in New Issue
Block a user