mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
✨
This commit is contained in:
parent
f76394babf
commit
a3e7636d61
@ -160,9 +160,9 @@ async function init(): Promise<State> {
|
|||||||
// Get machine info
|
// Get machine info
|
||||||
const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1);
|
const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1);
|
||||||
const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1);
|
const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1);
|
||||||
log('Info', `MACHINE: ${os.hostname()}`);
|
log('Info', `${os.hostname()}`, 'Machine');
|
||||||
log('Info', `MACHINE: CPU: ${os.cpus().length}core`);
|
log('Info', `CPU: ${os.cpus().length}core`, 'Machine');
|
||||||
log('Info', `MACHINE: MEM: ${totalmem}GB (available: ${freemem}GB)`);
|
log('Info', `MEM: ${totalmem}GB (available: ${freemem}GB)`, 'Machine');
|
||||||
|
|
||||||
if (!fs.existsSync(`${__dirname}/../.config/config.yml`)) {
|
if (!fs.existsSync(`${__dirname}/../.config/config.yml`)) {
|
||||||
log('Error', 'Configuration not found');
|
log('Error', 'Configuration not found');
|
||||||
|
Loading…
Reference in New Issue
Block a user