Minor orborus fix

This commit is contained in:
Frikky
2023-10-22 22:03:46 +02:00
parent d163d1fbf2
commit 9a366e30ec
3 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -1036,6 +1036,7 @@ func getOrborusStats() shuffle.OrborusStats {
newStats.MaxMemory = int(pers.MemTotal)
}
// Get list of all running containers
containers, err := dockercli.ContainerList(ctx, types.ContainerListOptions{})
if err != nil {
@@ -1103,8 +1104,9 @@ func getOrborusStats() shuffle.OrborusStats {
}
}
newStats.CPUPercent = totalCPU
newStats.CPUPercent = totalCPU/float64(newStats.CPU)
newStats.MemoryPercent = memUsage
log.Printf("[DEBUG] CPU: %.2f, Memory: %.2f", newStats.CPUPercent, newStats.MemoryPercent)
/*