update
[stationnotifier] / notificatorossl
index 4b2a9e5e6d97205d747b28a12596dba9eece1f72..ce4aef485530ccec4d85ba4916096dabe1482f7e 100755 (executable)
@@ -35,8 +35,9 @@ do
     notifications=${my_array[2]}
     echo "" > $tmpfile
     if [[ $notifications -gt $lasttime ]]; then
+           new=$(expr $notifications - $lasttime)
         echo -en "\007"
-        echo "You have new notifications!"
+        echo "You have $notifications notifications and $new new notifications!"
         read -p "Press enter to continue, or either type amfora or lagrange to go to notifications" answer
        case $answer in
                amfora)
@@ -55,6 +56,6 @@ echo "waiting for new notifications"
         lasttime=$notifications
         unset my_array
     fi
-    sleep 60
+    sleep 600
 done