From a4b764ad52ca0aec1269947bda8627e383f1b06d Mon Sep 17 00:00:00 2001 From: Alexander Khodyrev Date: Sat, 14 Sep 2024 10:41:30 +0300 Subject: [PATCH] delete older counters --- module.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/module.nix b/module.nix index 84bcf7d..41a3817 100644 --- a/module.nix +++ b/module.nix @@ -52,6 +52,7 @@ in { if ${pkgs.curl}/bin/curl http://localhost:${toString cfg.listenPort}/visits > visits-new.json; then cp visits-new.json "$(date +"%Y-%m-%d-%H-%M").json" mv visits-new.json visits.json + ${pkgs.findutils}/bin/find . -ctime +10 -delete fi ''; serviceConfig = {