From a899ea97c2a24f1b64a996e7ecf396bad106cb31 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 29 Apr 2016 09:57:22 +1000 Subject: [PATCH] Uptime formatting --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index b888aed9..5d216f10 100755 --- a/neofetch +++ b/neofetch @@ -594,7 +594,7 @@ getuptime () { hours="$hours hours," mins="$mins minutes" - uptime="up ${days/0 days,} ${hours/0 hours,} ${mins/0 mins}" + uptime="up ${days/0 days,} ${days/1 days/1 day} ${hours/0 hours,} ${hours/1 hours/1 hour} ${mins/0 minutes} ${mins/1 minutes/1 minute}" ;; esac