   (try
     (pl-utils/demarcate
       (format "sweep of stale nodes (threshold: %s)"
-              (format-period (secs node-ttl-seconds)))
+              (format-period node-ttl-seconds))
       (with-transacted-connection db
-        (doseq [node (scf-store/stale-nodes (ago (secs node-ttl-seconds)))]
+        (doseq [node (scf-store/stale-nodes (ago node-ttl-seconds))]
           (send-command! "deactivate node" 1 (json/generate-string node)))))
     (catch Exception e
       (log/error e "Error while deactivating stale nodes"))))

  (try
    (pl-utils/demarcate
      (format "sweep of stale reports (threshold: %s)"
              (format-period (secs report-ttl-seconds)))
      (with-transacted-connection db
        (scf-store/delete-reports-older-than! (ago (secs report-ttl-seconds)))))
    (catch Exception e
      (log/error e "Error while sweeping reports"))))


  (try
    (pl-utils/demarcate
      (format "purge deactivated nodes (threshold: %s)"
              (format-period node-purge-ttl-seconds))
      (with-transacted-connection db
        (scf-store/purge-deactivated-nodes! (ago node-purge-ttl-seconds))))
    (catch Exception e
      (log/error e "Error while purging deactivated nodes"))))

