aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2026-04-02 02:31:10 +0200
committerLizzy Fleckenstein <lizzy@vlhl.dev>2026-04-02 02:31:10 +0200
commitf363ff4a929325e708227b5f772583111b1cfdb2 (patch)
tree0ff40799570e25caf3f7af6affaa3370c17e6f3d
parent27379f3940435397c9dae361a58d38c2e7adc0d4 (diff)
downloadburstdog-f363ff4a929325e708227b5f772583111b1cfdb2.tar.xz
pids can have 6 digitsHEADmain
-rw-r--r--burstdog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/burstdog.c b/burstdog.c
index f39e6a2..54f02de 100644
--- a/burstdog.c
+++ b/burstdog.c
@@ -262,7 +262,7 @@ int main(int argc, char **argv)
bursting = 0;
} else if (bursting != proc->pid && proc_share >= BURSTDOG_BURST) {
int n_msg = snprintf(msgbuffer, BUFSIZ,
- "%s: %5d %s is bursting: %"PRIu64" of %"PRIu64" ticks (%"PRIu64"%% of %ld cores)\n",
+ "%s: %6d %s is bursting: %"PRIu64" of %"PRIu64" ticks (%"PRIu64"%% of %ld cores)\n",
timebuf, proc->pid, proc->name, proc_busy, total, proc_share, nproc);
write_all(logfd, msgbuffer, n_msg);
bursting = proc->pid;
@@ -315,7 +315,7 @@ int main(int argc, char **argv)
uint64_t proc_busy = proc->time[0] - proc->time[BURSTDOG_SAMPLES-1];
uint64_t proc_share = nproc * proc_busy * 100 / total;
n_msg += snprintf(msgbuffer+n_msg, BUFSIZ > n_msg ? BUFSIZ-n_msg : 0,
- "%s: top %zu: %5d %s got: %"PRIu64" of %"PRIu64" ticks (%"PRIu64"%% of %ld cores)\n",
+ "%s: top %zu: %6d %s got: %"PRIu64" of %"PRIu64" ticks (%"PRIu64"%% of %ld cores)\n",
timebuf, i+1, proc->pid, proc->name, proc_busy, total, proc_share, nproc);
}
n_msg += snprintf(msgbuffer+n_msg, BUFSIZ > n_msg ? BUFSIZ-n_msg : 0, "\n");