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) {
return []
}
console.log('doing')
let uptime: number | string = system.info.u
if (system.info.u < 172800) {
uptime = `${Math.trunc(uptime / 3600)} hours`

View File

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