fix time_t logging

This commit is contained in:
Vincent Sanders 2017-09-08 20:47:22 +01:00
parent b525293a95
commit 8b88e44090
2 changed files with 2 additions and 2 deletions

View File

@ -3327,7 +3327,7 @@ void llcache_clean(bool purge)
NSLOG(llcache, DEBUG,
"discarding fresh object len:%zd age:%ld (%p) %s",
object->source_len,
time(NULL) - object->last_used,
(long)(time(NULL) - object->last_used),
object,
nsurl_access(object->url));

View File

@ -185,7 +185,7 @@ int monkey_schedule_run(void)
timersub(&nexttime, &tv, &rettime);
NSLOG(schedule, DEBUG, "returning time to next event as %ldms",
(rettime.tv_sec * 1000) + (rettime.tv_usec / 1000));
(long)((rettime.tv_sec * 1000) + (rettime.tv_usec / 1000)));
/* return next event time in milliseconds (24days max wait) */
return (rettime.tv_sec * 1000) + (rettime.tv_usec / 1000);