Explorar o código

longer interval tick

Dr-Swopt hai 1 semana
pai
achega
164885944b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/surveillance/surveillance.service.ts

+ 2 - 2
src/surveillance/surveillance.service.ts

@@ -49,8 +49,8 @@ export class SurveillanceService implements OnModuleInit, OnModuleDestroy {
   // ─── Lifecycle ─────────────────────────────────────────────────────────────
 
   onModuleInit() {
-    this.logger.log('SurveillanceService booting — starting 500ms poll loop');
-    this.pollInterval = setInterval(() => this.tick(), 500);
+    this.logger.log('SurveillanceService booting — starting 1000ms poll loop');
+    this.pollInterval = setInterval(() => this.tick(), 1000);
   }
 
   onModuleDestroy() {