update SystemInfo ts type

This commit is contained in:
Henry Dollman
2024-09-18 13:02:53 -04:00
parent 314cee081a
commit a286bed54c
2 changed files with 1 additions and 2 deletions

View File

@@ -205,7 +205,6 @@ export default function SystemDetail({ name }: { name: string }) {
if (!system.info) { if (!system.info) {
return [] return []
} }
console.log('doing')
let uptime: number | string = system.info.u let uptime: number | string = system.info.u
if (system.info.u < 172800) { if (system.info.u < 172800) {
uptime = `${Math.trunc(uptime / 3600)} hours` uptime = `${Math.trunc(uptime / 3600)} hours`

View File

@@ -13,7 +13,7 @@ export interface SystemInfo {
/** hostname */ /** hostname */
h: string h: string
/** kernel **/ /** kernel **/
k: string k?: string
/** cpu percent */ /** cpu percent */
cpu: number cpu: number
/** cpu threads */ /** cpu threads */