JSON output with inconsistent sets of members is
annoying to use on the receiving side.
Signed-off-by: John Spray <john.spray@redhat.com>
} else {
f->dump_string("nick", "");
}
- if (d->prio) {
- int p = std::max(std::min(d->prio + prio_adjust,
- (int)PerfCountersBuilder::PRIO_CRITICAL),
- 0);
- f->dump_int("priority", p);
- }
+ int p = std::max(std::min(d->prio + prio_adjust,
+ (int)PerfCountersBuilder::PRIO_CRITICAL),
+ 0);
+ f->dump_int("priority", p);
f->close_section();
} else {
if (d->type & PERFCOUNTER_LONGRUNAVG) {