summaryrefslogtreecommitdiff
path: root/conflooze.sh
diff options
context:
space:
mode:
Diffstat (limited to 'conflooze.sh')
-rw-r--r--conflooze.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/conflooze.sh b/conflooze.sh
index cc3acc1..b7198a8 100644
--- a/conflooze.sh
+++ b/conflooze.sh
@@ -9,7 +9,11 @@ while true; do
if [ 1 -eq "$(echo "100 < "$i"" | bc)" ]; then
printf "\e[31m"
fi
- printf "%10.2f%%\e[m\r" "$(echo "$i+56" | bc)"
+ printf "%10.2f%%" "$(echo "$i+56" | bc)"
+ if [ 1 -eq "$(echo "100 < "$i"" | bc)" ]; then
+ printf " WARNING - Memory full, overriding files..."
+ fi
+ printf "\e[m\r"
sleep 0.5
i="$(echo "$i * 1.5" | bc)"
done