autocore: sync with official source

This commit is contained in:
CN_SZTL 2020-11-28 20:14:47 +08:00
parent 80f83cd862
commit 3961fc7859
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 6 additions and 6 deletions

View File

@ -89,12 +89,12 @@ return baseclass.extend({
_('CPU usage (%)'), cpuusage.cpuusage
];
var table = E('div', { 'class': 'table' });
var table = E('table', { 'class': 'table' });
for (var i = 0; i < fields.length; i += 2) {
table.appendChild(E('div', { 'class': 'tr' }, [
E('div', { 'class': 'td left', 'width': '33%' }, [ fields[i] ]),
E('div', { 'class': 'td left' }, [ (fields[i + 1] != null) ? fields[i + 1] : '?' ])
E('td', { 'class': 'td left', 'width': '33%' }, [ fields[i] ]),
E('td', { 'class': 'td left' }, [ (fields[i + 1] != null) ? fields[i + 1] : '?' ])
]));
}

View File

@ -88,12 +88,12 @@ return L.Class.extend({
_('CPU usage (%)'), cpuusage.cpuusage
];
var table = E('div', { 'class': 'table' });
var table = E('table', { 'class': 'table' });
for (var i = 0; i < fields.length; i += 2) {
table.appendChild(E('div', { 'class': 'tr' }, [
E('div', { 'class': 'td left', 'width': '33%' }, [ fields[i] ]),
E('div', { 'class': 'td left' }, [ (fields[i + 1] != null) ? fields[i + 1] : '?' ])
E('td', { 'class': 'td left', 'width': '33%' }, [ fields[i] ]),
E('td', { 'class': 'td left' }, [ (fields[i + 1] != null) ? fields[i + 1] : '?' ])
]));
}