✨
This commit is contained in:
		| @@ -48,9 +48,9 @@ async function cpuUsage() { | ||||
| 	try { | ||||
| 		const data = await sysUtils.currentLoad(); | ||||
| 		return Math.floor(data.currentload); | ||||
|   } | ||||
|   catch(error) { | ||||
| 	} catch (error) { | ||||
| 		console.error(error); | ||||
| 		throw error; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| @@ -59,8 +59,7 @@ async function freeMem() { | ||||
| 	try { | ||||
| 		const data = await sysUtils.mem(); | ||||
| 		return data.active; | ||||
|   } | ||||
|   catch(error) { | ||||
| 	} catch (error) { | ||||
| 		console.error(error); | ||||
| 	} | ||||
| } | ||||
| @@ -70,8 +69,7 @@ async function totalMem() { | ||||
| 	try { | ||||
| 		const data = await sysUtils.mem(); | ||||
| 		return data.total; | ||||
|   } | ||||
|   catch(error) { | ||||
| 	} catch (error) { | ||||
| 		console.error(error); | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Aya Morisawa
					Aya Morisawa