mirror of
https://github.com/unraid/webgui.git
synced 2026-01-08 02:29:51 -06:00
Dashboard: fix display error
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user