Always show the sign in time differences 1.8
authorMichael Smith <smithm@netapps.com.au>
Thu Apr 01 17:48:58 2010 +1100 (2010-04-01)
changeset 107f063800e7b8d
parent 106 2d020fea079f
child 108 04551e369126
Always show the sign in time differences
list.c
     1.1 --- a/list.c	Thu Apr 01 17:48:03 2010 +1100
     1.2 +++ b/list.c	Thu Apr 01 17:48:58 2010 +1100
     1.3 @@ -69,20 +69,20 @@
     1.4    diff = date - ctime;
     1.5    if(abs(diff) < 60)
     1.6    {
     1.7 -    sprintf(text,"%d seconds",diff);
     1.8 +    sprintf(text,"%+d seconds",diff);
     1.9      return(text);
    1.10    }
    1.11    if(abs(diff) < 3600)
    1.12    {
    1.13 -    sprintf(text,"%d minutes",diff / 60);
    1.14 +    sprintf(text,"%+d minutes",diff / 60);
    1.15      return(text);
    1.16    }
    1.17    if(abs(diff) < 86400)
    1.18    {
    1.19 -    sprintf(text,"%d hours",diff / 3600);
    1.20 +    sprintf(text,"%+d hours",diff / 3600);
    1.21      return(text);
    1.22    }
    1.23 -  sprintf(text,"%d days",diff / 86400);
    1.24 +  sprintf(text,"%+d days",diff / 86400);
    1.25    return(text);
    1.26  }
    1.27