Przeglądaj źródła

longer interval tick

Dr-Swopt 1 tydzień temu
rodzic
commit
164885944b
1 zmienionych plików z 2 dodań i 2 usunięć
  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 ─────────────────────────────────────────────────────────────
   // ─── Lifecycle ─────────────────────────────────────────────────────────────
 
 
   onModuleInit() {
   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() {
   onModuleDestroy() {