mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
set running = false when mock,runc collectors stopped
This commit is contained in:
@@ -38,6 +38,7 @@ func (c *Mock) Start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Mock) Stop() {
|
func (c *Mock) Stop() {
|
||||||
|
c.running = false
|
||||||
c.done = true
|
c.done = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ func (c *Runc) Start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Runc) Stop() {
|
func (c *Runc) Stop() {
|
||||||
|
c.running = false
|
||||||
c.done = true
|
c.done = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user