Fix serverinfo CPU on some Android devices

This commit is contained in:
7cc5c4f330d47060 2024-07-23 18:26:00 -04:00
parent b49427cab7
commit f418b7ddf7

View file

@ -50,7 +50,7 @@ const os2 = function (o2,l) {
module.exports = {
execute: function (c) {
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.os"), os2(process.platform,c.lang)))
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.processor"), os.cpus()[0].model))
if(os.cpus()[0]) c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.processor"), os.cpus()[0].model))
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.arch"), os.machine()))
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.osUsername"), os.userInfo().username))
c.reply(gr(c.lang,getMessage(c.lang,"command.serverinfo.runTime"), timeformat(process.uptime() * 1000)))