mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 10:46:16 +01:00
agent refactoring - create agent/docker.go, agent/system.go
This commit is contained in:
@@ -18,6 +18,9 @@ func (a *Agent) initializeDiskInfo() {
|
||||
efPath := "/extra-filesystems"
|
||||
hasRoot := false
|
||||
|
||||
// Create map for disk stats
|
||||
a.fsStats = make(map[string]*system.FsStats)
|
||||
|
||||
partitions, err := disk.Partitions(false)
|
||||
if err != nil {
|
||||
slog.Error("Error getting disk partitions", "err", err)
|
||||
|
||||
Reference in New Issue
Block a user