newline in uptime

This commit is contained in:
Mathew committed 2020-02-21 17:56:23 +01:00
1 parent f56d14292b
commit c991b44e5a
1 file changed
+3 -2
+3 -2
View File
@@ -52,6 +52,7 @@ Promise.all([
} while (m);
})
]).then(() => {
console.log()
console.log(`System is up \x1b[34m${stats.uptime}\x1b[0m`)
console.log(`${stats.users} user${stats.users == 1 ? '' : 's'} logged in`)
process.stdout.write(`CPU: `)
@@ -72,8 +73,8 @@ Promise.all([
console.log(`Public IP: \x1b[36m${stats.public}\x1b[0m`)
for (let nic in stats.nics) {
if(nic === 'spaces') continue
console.log(` ${nic}:${' '.repeat(stats.nics.spaces - nic.length+1)}${stats.nics[nic].mac} - ${stats.nics[nic].addr}`)
if (nic === 'spaces') continue
console.log(` ${nic}:${' '.repeat(stats.nics.spaces - nic.length + 1)}${stats.nics[nic].mac} - ${stats.nics[nic].addr}`)
}
})