diff --git a/functions/fn_details_distro b/functions/fn_details_distro index ca1e7348b..b438f012f 100644 --- a/functions/fn_details_distro +++ b/functions/fn_details_distro @@ -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 ))