Commit f1e68fea authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Convert ticks_delta to 64bit integer

parent a9757a63
......@@ -716,7 +716,7 @@ int main (int argc, char *argv[]) {
/* Are we processing cpu limits? */
if (cpuLimit) {
/* Change in ticks for period */
uint32_t ticks_delta;
uint64_t ticks_delta;
/* Number of ticks allowed */
double ticks_allowed;
......@@ -783,7 +783,7 @@ int main (int argc, char *argv[]) {
/* Print out info if we're running in verbose mode */
if (verbose > 1) {
logmsg("CPU LIMIT => wasRunning=%i, tickBucket = %.2f (allowed += %.2f, consumed -= %u), elapsed us = %llu, sleep_us = %u\n", wasRunning, tickBucket, ticks_allowed, ticks_delta, elapsed_us, sleep_us);
logmsg("CPU LIMIT => wasRunning=%i, tickBucket = %.2f (allowed += %.2f, consumed -= %llu), elapsed us = %llu, sleep_us = %u\n", wasRunning, tickBucket, ticks_allowed, ticks_delta, elapsed_us, sleep_us);
}
}
......
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