From af19cbb098d6c8c1bea311b628ccb5f1ce897828 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 24 Nov 2010 20:14:54 +0100 Subject: Store last active time. --- parsing.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'parsing.c') diff --git a/parsing.c b/parsing.c index c2e9f23..c57a242 100644 --- a/parsing.c +++ b/parsing.c @@ -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; -- cgit v1.2.3