MCPcopy Create free account
hub / github.com/PleasureTools/joyBox / StartResourceMonitor

Method StartResourceMonitor

backend/Src/main.ts:303–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301 .forEach(x => this.observablesFilters.set(x.id, x));
302 }
303 private async StartResourceMonitor() {
304 this.systemResourcesMonitor =
305 await new SystemResourcesMonitorFactory(ARCHIVE_FOLDER, 10000).Create();
306 this.systemResourcesMonitor.OnUpdate.On(x => this.broadcaster.SystemMonitorUpdate(x));
307
308 this.SetupPluginManagerController();
309
310 this.systemResourcesMonitor.Start();
311 }
312 private SetupPluginManagerController() {
313 const settings = this.storage.FetchSettings();
314 if (settings.storageQuota > 0) {

Callers 1

constructorMethod · 0.95

Calls 5

SystemMonitorUpdateMethod · 0.80
OnMethod · 0.65
CreateMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected