summaryrefslogtreecommitdiff
path: root/internal/stats/stats.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-02 12:41:08 +0200
committerPaul Buetow <paul@buetow.org>2026-03-02 12:41:08 +0200
commitd0b9bc84aed1898a06a9d6fc3b82beee407d3cde (patch)
tree7bb343960ee912d77dbc9f7720cd8cdd1f0172ea /internal/stats/stats.go
parentbbc91e8764bd83c4497f2ddac86bb8947a91765c (diff)
Refactor display iteration/state and harden collector runtime
Diffstat (limited to 'internal/stats/stats.go')
-rw-r--r--internal/stats/stats.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/stats/stats.go b/internal/stats/stats.go
index 463268f..cc99483 100644
--- a/internal/stats/stats.go
+++ b/internal/stats/stats.go
@@ -1,9 +1,5 @@
package stats
-import (
- "codeberg.org/snonux/loadbars/internal/collector"
-)
-
// NetStamp holds network stats and timestamp for delta calculation.
type NetStamp struct {
B int64
@@ -24,7 +20,7 @@ type HostStats struct {
LoadAvg1, LoadAvg5, LoadAvg15 string
Mem map[string]int64
Net map[string]NetStamp
- CPU map[string]collector.CPULine
+ CPU map[string]CPULine
Disk map[string]DiskStamp
}