|
@@ -1120,7 +1120,7 @@ static void *worker_thread(void *__tdata)
|
|
|
/* Check whether our max runtime timed out: */
|
|
|
if (g->p.nr_secs) {
|
|
|
timersub(&stop, &start0, &diff);
|
|
|
- if (diff.tv_sec >= g->p.nr_secs) {
|
|
|
+ if ((u32)diff.tv_sec >= g->p.nr_secs) {
|
|
|
g->stop_work = true;
|
|
|
break;
|
|
|
}
|
|
@@ -1167,7 +1167,7 @@ static void *worker_thread(void *__tdata)
|
|
|
runtime_ns_max += diff.tv_usec * 1000;
|
|
|
|
|
|
if (details >= 0) {
|
|
|
- printf(" #%2d / %2d: %14.2lf nsecs/op [val: %016lx]\n",
|
|
|
+ printf(" #%2d / %2d: %14.2lf nsecs/op [val: %016"PRIx64"]\n",
|
|
|
process_nr, thread_nr, runtime_ns_max / bytes_done, val);
|
|
|
}
|
|
|
fflush(stdout);
|