Try catch cpu log
This commit is contained in:
parent
1cc159348a
commit
63d9baa186
@ -4,7 +4,13 @@ import { red } from "picocolors";
|
|||||||
|
|
||||||
export function initStats() {
|
export function initStats() {
|
||||||
console.log(`[Path] running in ${__dirname}`);
|
console.log(`[Path] running in ${__dirname}`);
|
||||||
|
try {
|
||||||
console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`);
|
console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`);
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
console.log('[CPU] Failed to get cpu model!')
|
||||||
|
}
|
||||||
|
|
||||||
console.log(`[System] ${os.platform()} ${os.arch()}`);
|
console.log(`[System] ${os.platform()} ${os.arch()}`);
|
||||||
console.log(`[Process] running with PID: ${process.pid}`);
|
console.log(`[Process] running with PID: ${process.pid}`);
|
||||||
if (process.getuid && process.getuid() === 0) {
|
if (process.getuid && process.getuid() === 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user