aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2024-12-24 20:13:00 -0500
committertdback <tyler@tdback.net>2024-12-24 20:13:00 -0500
commit3f5fb2da8b191bdef4688777d405d20ea1350607 (patch)
tree13552c31abdda7714f08527846aa36fd4ee3e249
parent2f335a6c47b363189b976d18a8c7633bff4d7a33 (diff)
fix variables
-rw-r--r--modules/scripts/zquota/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/scripts/zquota/default.nix b/modules/scripts/zquota/default.nix
index 1dc1fbd..449bf76 100644
--- a/modules/scripts/zquota/default.nix
+++ b/modules/scripts/zquota/default.nix
@@ -25,9 +25,9 @@ let
exit 1
}
- USAGE=$(${getExe pkgs.bc} <<< "scale=2; $NUM / 1024^3")
+ USAGE=$(${getExe pkgs.bc} <<< "scale=2; $USED / 1024^3")
- DIFF=$(${getExe pkgs.bc} <<< "scale=2; $NUM - $QUOTA")
+ DIFF=$(${getExe pkgs.bc} <<< "scale=2; $USAGE - $QUOTA")
(( $(awk '{ print ($1 > $2) }' <<< "$USAGE $QUOTA") )) &&
/run/current-system/sw/bin/pushover -t "${hostname} quota exceeded" \