MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / stop

Method stop

daemon/src/entity/commands/task/docker_stats.ts:173–195  ·  view source on GitHub ↗
(instance: Instance)

Source from the content-addressed store, hash-verified

171 }
172
173 async stop(instance: Instance) {
174 if (this.task) {
175 clearInterval(this.task);
176 this.task = null;
177 }
178 this.isUpdating = false;
179 this.lastStatsMap.clear();
180 instance.info = {
181 ...instance.info,
182 cpuUsage: undefined,
183 rxBytes: undefined,
184 txBytes: undefined,
185 rxRate: undefined,
186 txRate: undefined,
187 networkInterfaces: undefined,
188 networkStatsSource: undefined,
189 memoryUsagePercent: undefined,
190 readBytes: undefined,
191 writeBytes: undefined,
192 storageUsage: 0,
193 storageLimit: instance.config.docker?.maxSpace ?? 0
194 };
195 }
196}

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected