# HG changeset patch # User llbatlle@comanegra # Date 1301645167 -7200 # Node ID 1567704292af6d79c4cb34bb921c41fce446a09e # Parent 39a78ed9bf036e0b66a1c803c18436820b930bbd Afegeixo la possibilitat de fer comentaris amb '#' diff -r 39a78ed9bf03 -r 1567704292af tt.c --- 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;