Changeset 3fdebb8 in code
- Timestamp:
- Mar 6, 2014, 1:56:10 PM (11 years ago)
- Branches:
- master
- Children:
- f3c60e6
- Parents:
- 709c3bc
- git-author:
- Florian Obser <florian@…> (03/06/14 13:55:53)
- git-committer:
- Florian Obser <florian@…> (03/06/14 13:56:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
logger.c
r709c3bc r3fdebb8 219 219 logger_tick(void) 220 220 { 221 static int last_mon = -1, last_mday = -1; 221 222 struct timeval tv = { 60, 0 }; 222 static int last_mon = -1;223 char buf[128]; 223 224 struct tm *tm; 224 225 time_t t; … … 238 239 nlogfiles = 0; 239 240 } 241 if (tm->tm_mday != last_mday) { 242 strftime(buf, sizeof(buf), 243 "Today is %a %b %e %Y %H:%M %Z (%z)", tm); 244 for (i = 0; i < nlogfiles; i++) 245 fprintf(logfiles[i].fp, "%s\n", buf); 246 last_mday = tm->tm_mday; 247 } 240 248 snprintf(line_ts, sizeof line_ts, "%02d:%02d", tm->tm_hour, 241 249 tm->tm_min);
Note:
See TracChangeset
for help on using the changeset viewer.