Dashboard: fix display error

This commit is contained in:
bergware
2023-12-25 06:15:33 +01:00
parent bc7bde60c6
commit 489b73d104
2 changed files with 4 additions and 4 deletions

View File

@@ -1537,7 +1537,7 @@ dashboard.on('message',function(msg,meta) {
case 2:
if (!update2) break;
var get = JSON.parse(msg);
var data = get.disk.split('\n');
var data = get.disk.split('\r');
var info = moreInfo(data,"_(Array)_");
// array devices
$('#array_list tr.updated').remove();
@@ -1547,7 +1547,7 @@ dashboard.on('message',function(msg,meta) {
smartMenu('#array_list');
// pool devices
for (var i=0,pool; pool=get.pool[i]; i++) {
var data = pool.split('\n');
var data = pool.split('\r');
var info = moreInfo(data,"_(Pool)_");
$('#pool_list'+i+' tr.updated').remove();
$('#pool_list'+i).append(pool).hideMe();

View File

@@ -309,7 +309,7 @@ while (true) {
$error = $warning = $red = $orange = $fail = $smart = $full = $high = 0;
$echo[$a][] = array_group('Parity');
$echo[$a][] = array_group('Data');
$echo[$a][] = "\n".($error+$warning)."\n".($red+$orange)."\n".($fail+$smart)."\n".($full+$high);
$echo[$a][] = "\r".($error+$warning)."\r".($red+$orange)."\r".($fail+$smart)."\r".($full+$high);
$echo[$a] = implode($echo[$a]);
//pool devices
@@ -320,7 +320,7 @@ while (true) {
$error = $warning = $red = $orange = $fail = $smart = $full = $high = 0;
$echo[$a][$p] = [];
$echo[$a][$p][] = array_group('Cache',$pool);
$echo[$a][$p][] = "\n".($error+$warning)."\n".($red+$orange)."\n".($fail+$smart)."\n".($full+$high);
$echo[$a][$p][] = "\r".($error+$warning)."\r".($red+$orange)."\r".($fail+$smart)."\r".($full+$high);
$echo[$a][$p] = implode($echo[$a][$p]);
$p++;
}