mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
initialize metrics with negative value prior to collector start
This commit is contained in:
@@ -19,8 +19,9 @@ type Container struct {
|
||||
|
||||
func NewContainer(id, name string) *Container {
|
||||
c := &Container{
|
||||
id: id,
|
||||
name: name,
|
||||
id: id,
|
||||
name: name,
|
||||
metrics: metrics.NewMetrics(),
|
||||
}
|
||||
c.widgets = compact.NewCompact(c.ShortID(), c.ShortName(), c.state)
|
||||
return c
|
||||
|
||||
Reference in New Issue
Block a user