author | llbatlle@comanegra |
Fri, 01 Apr 2011 10:06:07 +0200 | |
changeset 20 | 1567704292af |
parent 19 | 39a78ed9bf03 |
child 21 | 5dababf1cb7d |
--- a/tt.c Fri Mar 04 11:06:11 2011 +0100 +++ b/tt.c Fri Apr 01 10:06:07 2011 +0200 @@ -234,7 +234,7 @@ } while(!feof(f) && n <= sizeof(buf)); buf[n] = 0; - if(n > 0) + if(n > 0 && buf[0] != '#') { char *end_date, *start_task; int time; @@ -263,7 +263,7 @@ prev_time_str = strdup(buf); is_prev_time_read = 1; } - else + else if (n == 0) /* eof */ { /* Time until now, for the last switch */ int diff = get_current_time() - prev_time;