From 3f5fb2da8b191bdef4688777d405d20ea1350607 Mon Sep 17 00:00:00 2001 From: tdback Date: Tue, 24 Dec 2024 20:13:00 -0500 Subject: fix variables --- modules/scripts/zquota/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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" \ -- cgit v1.2.3