diff options
author | tdback <tyler@tdback.net> | 2024-12-24 20:13:00 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2024-12-24 20:13:00 -0500 |
commit | 3f5fb2da8b191bdef4688777d405d20ea1350607 (patch) | |
tree | 13552c31abdda7714f08527846aa36fd4ee3e249 /modules/scripts | |
parent | 2f335a6c47b363189b976d18a8c7633bff4d7a33 (diff) |
fix variables
Diffstat (limited to 'modules/scripts')
-rw-r--r-- | modules/scripts/zquota/default.nix | 4 |
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" \ |