Skip to content

Commit

Permalink
display: fix percentage display #2
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Aug 29, 2019
1 parent c5ee05d commit 32062cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion display.c
Expand Up @@ -253,7 +253,7 @@ static void display_displayLocked(honggfuzz_t* hfuzz) {
uint64_t softCntCmp = ATOMIC_GET(hfuzz->linux.hwCnts.softCntCmp);
uint64_t guardNb = ATOMIC_GET(hfuzz->feedback.feedbackMap->guardNb);
display_put(" edge: " ESC_BOLD "%" _HF_NONMON_SEP PRIu64 ESC_RESET "/" ESC_BOLD
"%" _HF_NONMON_SEP PRIu64 ESC_RESET " (%" PRId64 "%%)",
"%" _HF_NONMON_SEP PRIu64 ESC_RESET " [%" PRId64 "%%]",
softCntEdge, guardNb, guardNb ? ((softCntEdge * 100) / guardNb) : 0);
display_put(" pc: " ESC_BOLD "%" _HF_NONMON_SEP PRIu64 ESC_RESET, softCntPc);
display_put(" cmp: " ESC_BOLD "%" _HF_NONMON_SEP PRIu64 ESC_RESET, softCntCmp);
Expand Down

0 comments on commit 32062cf

Please sign in to comment.