mirror of
https://github.com/unraid/webgui.git
synced 2026-05-06 12:21:34 -05:00
Parity operation enhancements
This commit is contained in:
@@ -103,7 +103,7 @@ while (true) {
|
||||
$timestamp = date('Y',$var['sbSynced2']).' '.str_replace(['.0','.'],[' ',' '],date('M.d H:i:s',$var['sbSynced2']));
|
||||
if (new_parity_log($log,$timestamp)) {
|
||||
$idle = []; while (count($synced)>1) $idle[] = array_pop($synced)-array_pop($synced);
|
||||
[$action,$size] = explode(',',file_get_contents($resync));
|
||||
[$action,$size] = my_explode(',',@file_get_contents($resync));
|
||||
$duration = $var['sbSynced2']-$sbSynced;
|
||||
$status = $var['sbSyncExit'];
|
||||
$speed = $status==0 ? my_scale($size*1024/($duration-array_sum($idle)),$unit,1)." $unit/s" : 0;
|
||||
|
||||
Reference in New Issue
Block a user