Fixed parsing uptime when it has no decimal point
@@ -57,7 +57,7 @@ swapfree=$(free ${option} | awk '/Swap:/ {print $4}')
# Uptime
uptime=$(</proc/uptime)
-uptime=${uptime%%.*}
+uptime=${uptime/[. ]*/}
minutes=$(( uptime/60%60 ))
hours=$(( uptime/60/60%24 ))
days=$(( uptime/60/60/24 ))