Skip to content

Commit

Permalink
Merge pull request #1135 from Viserius/ms/fix-docker-monitor-rounds
Browse files Browse the repository at this point in the history
Resolve issue in which only first round would be docker-monitored
  • Loading branch information
aklenik authored Jul 21, 2021
2 parents afc4bb6 + 550fdb7 commit 4ecfca7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class MonitorDocker extends MonitorInterface {
*/
async start() {
// Conditionally build monitored containers, these are persisted between rounds and restart action
if (!this.containers) {
if (!this.containers || this.containers.length === 0) {
await this.findContainers();
}
// Read stats immediately, then kick off monitor refresh at interval
Expand Down

0 comments on commit 4ecfca7

Please sign in to comment.