autocore: drop luci ver display

This commit is contained in:
CN_SZTL 2020-07-18 00:12:59 +08:00
parent 3918d5f4b7
commit 08e0efdd64
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -46,14 +46,16 @@ return L.Class.extend({
systeminfo = data[1],
cpubench = data[2],
cpuinfo = data[3],
cpuusage = data[4],
luciversion = data[5];
cpuusage = data[4]; //,
// luciversion = data[5];
/*
luciversion = luciversion.filter(function(l) {
return l.match(/^\s*(luciname|luciversion)\s*=/);
}).map(function(l) {
return l.replace(/^\s*\w+\s*=\s*['"]([^'"]+)['"].*$/, '$1');
}).join(' ');
*/
var datestr = null;
@ -74,7 +76,7 @@ return L.Class.extend({
_('Hostname'), boardinfo.hostname,
_('Model'), boardinfo.model + cpubench.cpubench,
_('CPU Info'), cpuinfo.cpuinfo,
_('Firmware Version'), (L.isObject(boardinfo.release) ? boardinfo.release.description + ' / ' : '') + (luciversion || ''),
_('Firmware Version'), (L.isObject(boardinfo.release) ? boardinfo.release.description : '')/* + ' / ' : '') + (luciversion || '')*/,
_('Kernel Version'), boardinfo.kernel,
_('Local Time'), datestr,
_('Uptime'), systeminfo.uptime ? '%t'.format(systeminfo.uptime) : null,