mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 09:49:28 +08:00
update SystemInfo ts type
This commit is contained in:
@@ -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`
|
||||
|
2
beszel/site/src/types.d.ts
vendored
2
beszel/site/src/types.d.ts
vendored
@@ -13,7 +13,7 @@ export interface SystemInfo {
|
||||
/** hostname */
|
||||
h: string
|
||||
/** kernel **/
|
||||
k: string
|
||||
k?: string
|
||||
/** cpu percent */
|
||||
cpu: number
|
||||
/** cpu threads */
|
||||
|
Reference in New Issue
Block a user