Commit 8b88e440 authored by Vincent Sanders's avatar Vincent Sanders

fix time_t logging

parent b525293a
......@@ -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));
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment