mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 10:46:16 +01:00
add dockerManager / fix for Docker 24 and older
* dockerManager now handles all docker api interaction and container metrics tracking * sets unlimited concurrency for docker 24 and older
This commit is contained in:
@@ -2,13 +2,6 @@ package agent
|
||||
|
||||
import "math"
|
||||
|
||||
// delete container stats from map using mutex
|
||||
func (a *Agent) deleteContainerStatsSync(id string) {
|
||||
a.containerStatsMutex.Lock()
|
||||
defer a.containerStatsMutex.Unlock()
|
||||
delete(a.containerStatsMap, id)
|
||||
}
|
||||
|
||||
func bytesToMegabytes(b float64) float64 {
|
||||
return twoDecimals(b / 1048576)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user