X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mymail.git;a=blobdiff_plain;f=mymail.c;h=a04fde8eab17dba46399cac7ee8a1fd266628866;hp=90e8df3e63979e7dda195df5c436291719db39d0;hb=HEAD;hpb=a9a4a1e8e77dc66899b49f807ce06beb855faab4 diff --git a/mymail.c b/mymail.c index 90e8df3..a04fde8 100644 --- a/mymail.c +++ b/mymail.c @@ -456,7 +456,8 @@ void update_time(int db_key, const char *db_value, time_t *t) { if(db_key == ID_LEADING_LINE) { c = db_value; - while(*c && *c != ' ') c++; while(*c && *c == ' ') c++; + while(*c && *c != ' ') c++; + while(*c && *c == ' ') c++; /* printf("From %s", db_value); */ strptime(c, "%a %b %e %k:%M:%S %Y", &tm); *t = mktime(&tm); @@ -836,6 +837,8 @@ struct time_criterion { static struct time_criterion time_criteria[] = { { "1h", 0, 1, -1, -1 }, + { "2h", 0, 2, -1, -1 }, + { "4h", 0, 4, -1, -1 }, { "8h", 0, 8, -1, -1 }, { "24h", 0, 24, -1, -1 }, { "48h", 0, 48, -1, -1 },