Uptime formatting
This commit is contained in:
parent
bef0e37984
commit
a899ea97c2
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -594,7 +594,7 @@ getuptime () {
|
||||||
hours="$hours hours,"
|
hours="$hours hours,"
|
||||||
mins="$mins minutes"
|
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
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue