mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-26 03:17:49 +02:00
feat: Add cumulative disk read/write totals to Disk I/O sheet (#2179)
This commit is contained in:
@@ -57,6 +57,17 @@ export const diskDataFns = {
|
||||
(name: string) =>
|
||||
({ stats }: SystemStatsRecord) =>
|
||||
stats?.efs?.[name]?.wbm ?? (stats?.efs?.[name]?.wm ?? 0) * 1024 * 1024,
|
||||
// cumulative totals
|
||||
totalRead: ({ stats }: SystemStatsRecord) => stats?.diot?.[0] ?? 0,
|
||||
totalWrite: ({ stats }: SystemStatsRecord) => stats?.diot?.[1] ?? 0,
|
||||
extraTotalRead:
|
||||
(name: string) =>
|
||||
({ stats }: SystemStatsRecord) =>
|
||||
stats?.efs?.[name]?.tr ?? 0,
|
||||
extraTotalWrite:
|
||||
(name: string) =>
|
||||
({ stats }: SystemStatsRecord) =>
|
||||
stats?.efs?.[name]?.tw ?? 0,
|
||||
// read/write time
|
||||
readTime: dios(0),
|
||||
readTimeMax: diosMax(0),
|
||||
|
||||
Reference in New Issue
Block a user