netdata_tsrelay.nim
changeset 23 89ba1d73b232
parent 22 4250addd706f
child 27 38fef53ec76f
--- a/netdata_tsrelay.nim	Sat Dec 12 21:46:39 2020 -0800
+++ b/netdata_tsrelay.nim	Wed Oct 20 11:41:30 2021 -0700
@@ -31,11 +31,11 @@
 import
     db_postgres,
     json,
-    math,
     nativesockets,
     net,
     parseopt,
     posix,
+    std/exitprocs,
     strutils,
     strformat,
     tables,
@@ -382,7 +382,7 @@
 
 
 when isMainModule:
-    system.addQuitProc( resetAttributes )
+    addExitProc( resetAttributes )
     conf = parse_cmdline()
     if conf.debug: echo hl( $conf, fgYellow )
     serverloop( conf )