File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ void format_uptime(long int uptime) {
278
278
minutes = uptime / 60 ;
279
279
seconds = uptime % 60 ;
280
280
281
- int first = 1 ; // To handle the comma placement correctly
281
+ int first = 1 ; // To handle comma placement correctly
282
282
283
283
if (days > 0 ) {
284
284
printf ("%d day%s" , days , days > 1 ? "s" : "" );
@@ -296,7 +296,8 @@ void format_uptime(long int uptime) {
296
296
printf ("%d minute%s" , minutes , minutes > 1 ? "s" : "" );
297
297
first = 0 ;
298
298
}
299
- if (seconds > 0 ) {
299
+ if (seconds > 0 && days == 0 &&
300
+ hours == 0 ) { // Only show seconds if under an hour
300
301
if (!first )
301
302
printf (", " );
302
303
printf ("%d second%s" , seconds , seconds > 1 ? "s" : "" );
@@ -804,10 +805,7 @@ void tinywm(void) {
804
805
805
806
void tinyram (void ) {
806
807
if (ascii_enable == 1 ) {
807
- char * wm = getenv ("XDG_CURRENT_DESKTOP" );
808
- if (wm != NULL ) {
809
- printf ("%s" , tinyascii_p7 );
810
- }
808
+ printf ("%s" , tinyascii_p7 );
811
809
}
812
810
813
811
pretext (pretext_ram );
You can’t perform that action at this time.
0 commit comments