Dashboard not showing correct parity info.

This commit is contained in:
dlandon
2024-07-03 05:51:05 -05:00
parent 859e697413
commit 4904a5021c
+1 -1
View File
@@ -364,7 +364,6 @@ while (true) {
$echo[$a][] = "<br><i class='fa fa-fw fa-clock-o'></i> "._('Elapsed time').": "._(my_clock(floor((time()-$sbSynced)/60)),2);
$echo[$a][] = "<br><i class='fa fa-fw fa-flag-checkered'></i> "._('Estimated finish').': '.($bytes ? _(my_clock(round(((($delta*(($size-$spot)/($bytes/100+1)))/100)/60),0)),2) : _('Unknown'));
$echo[$a][] = "<br><i class='fa fa-fw fa-search'></i> ".print_error(_var($var,'sbSyncErrs',0));
$echo[$a] = implode($echo[$a]);
} else {
[$date,$duration,$speed,$status,$error,$action,$size] = last_parity_log();
if (_var($var,'sbSyncExit',0)!=0) {
@@ -468,6 +467,7 @@ while (true) {
}
$echo[$a] = [implode($echo[$a]), $extra];
}
$echo = json_encode($echo);
$md5_new = md5($echo,true);
if ($md5_new !== $md5_old) {