about summary refs log tree commit diff stats
path: root/src/sleep.ts
diff options
context:
space:
mode:
authorAlan Pearce2024-04-16 00:46:38 +0200
committerAlan Pearce2024-04-16 00:46:38 +0200
commit2038e626ef78f466d1d138cc3b48b6e522f4b0ed (patch)
treef1b59b0356df5e8244d51f1ac05a9adf24d5e701 /src/sleep.ts
parentf97814c2cdc8d34d5816afe7ed81c841ead84998 (diff)
downloadwebsite-2038e626ef78f466d1d138cc3b48b6e522f4b0ed.tar.lz
website-2038e626ef78f466d1d138cc3b48b6e522f4b0ed.tar.zst
website-2038e626ef78f466d1d138cc3b48b6e522f4b0ed.zip
disable auto-sleep (fly will charge for stopped machines soon)
Diffstat (limited to 'src/sleep.ts')
-rw-r--r--src/sleep.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/sleep.ts b/src/sleep.ts
deleted file mode 100644
index 663d472..0000000
--- a/src/sleep.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-let sleepTimeout: Timer;
-
-export function keepAwake() {
-  if (sleepTimeout) clearTimeout(sleepTimeout);
-  sleepTimeout = setTimeout(function () {
-    process.exit(0);
-  }, 300_000);
-}