Uptime fixes
This commit is contained in:
parent
9871e65148
commit
cec15d9fb2
11
neofetch
11
neofetch
|
@ -594,7 +594,16 @@ getuptime () {
|
|||
hours=" $hours hours,"
|
||||
mins=" $mins minutes"
|
||||
|
||||
uptime="up${days/ 0 days,}${hours/ 0 hours,}${mins/ 0 minutes}"
|
||||
days=${days/ 0 days,}
|
||||
days=${days/ 1 days/ 1 day}
|
||||
|
||||
hours=${hours/ 0 hours,}
|
||||
hours=${hours/ 1 hours/ 1 hour}
|
||||
|
||||
mins=${mins/ 0 minutes}
|
||||
mins=${mins/ 1 minutes/ 1 minute}
|
||||
|
||||
uptime="up${days}${hours}${mins}"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Reference in New Issue