Upstream PR: https://github.com/dylanaraps/neofetch/pull/2020 Thanks to @yzgyyang Co-authored-by: Guangyuan Yang <yzgyyang@outlook.com>
@@ -1515,6 +1515,9 @@ get_uptime() {
((${h/ *} == 0)) && unset h
((${m/ *} == 0)) && unset m
+ # Add "(!)" if more than 100 days
+ ((${d/ *} > 100)) && d="${d}(!)"
+
uptime=${d:+$d, }${h:+$h, }$m
uptime=${uptime%', '}
uptime=${uptime:-$s seconds}