diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-24 20:14:54 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-24 20:14:54 +0100 |
commit | af19cbb098d6c8c1bea311b628ccb5f1ce897828 (patch) | |
tree | fc71001f4c1cc6aea623a04580c32785e3e9d916 /parsing.c | |
parent | 58c8a81222b9f4ad96255f94d2173dd17112d804 (diff) |
Store last active time.
Diffstat (limited to 'parsing.c')
-rw-r--r-- | parsing.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -370,15 +370,18 @@ void process() { } else printf("\tParsing %s\n", file->path); - long pos = pg_channel_file_get(channel_id, file); + long pos; + time_t time; + pg_channel_file_get(channel_id, file, &pos, &time); fseek(f, pos, SEEK_SET); + localtime_r(&time, &now_global); last_user = NULL; in_monolog = monolog_len = 0; process_file(f, channel, rs); - pg_channel_file_set(channel_id, file, ftell(f)); + pg_channel_file_set(channel_id, file, ftell(f), mktime(&now_global)); fclose(f); file = file->next; |