diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-04-09 00:00:13 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-04-09 00:00:13 +0200 |
commit | 87f6ee55fc14327321e9d606ac9683c112fefaa9 (patch) | |
tree | 48b13ff430fa710e9a6417ed7173439643bf389e /sfeed_stats.c | |
parent | b8b24fe4131e7e7fb46eb330b14ce340844b601a (diff) |
cleanup, remove javascript hotkey
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat (limited to 'sfeed_stats.c')
-rw-r--r-- | sfeed_stats.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sfeed_stats.c b/sfeed_stats.c index 9846e38..3d594d5 100644 --- a/sfeed_stats.c +++ b/sfeed_stats.c @@ -44,7 +44,8 @@ main(void) { isnew = (parsedtime >= comparetime); islink = (fields[FieldLink][0] != '\0'); /* first of feed section or new feed section. */ - if(!totalfeeds || (feedcurrent && strcmp(feedcurrent->name, fields[FieldFeedName]))) { /* TODO: allocate feedcurrent before here, feedcurrent can be NULL */ + /* TODO: allocate feedcurrent before here, feedcurrent can be NULL */ + if(!totalfeeds || (feedcurrent && strcmp(feedcurrent->name, fields[FieldFeedName]))) { if(!(f = calloc(1, sizeof(struct feed)))) die("can't allocate enough memory"); if(totalfeeds) { /* end previous one. */ @@ -79,7 +80,8 @@ main(void) { for(feedcurrent = feeds; feedcurrent; feedcurrent = feedcurrent->next) { if(!feedcurrent->name || feedcurrent->name[0] == '\0') continue; - fprintf(stdout, "%c %-20.20s [%4lu/%-4lu]", feedcurrent->totalnew > 0 ? 'N' : ' ', + fprintf(stdout, "%c %-20.20s [%4lu/%-4lu]", + feedcurrent->totalnew > 0 ? 'N' : ' ', feedcurrent->name, feedcurrent->totalnew, feedcurrent->total); if(feedcurrent->timenewestformat && feedcurrent->timenewestformat[0]) fprintf(stdout, " %s", feedcurrent->timenewestformat); |