diff options
| author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-04-02 02:31:10 +0200 |
|---|---|---|
| committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-04-02 02:31:10 +0200 |
| commit | f363ff4a929325e708227b5f772583111b1cfdb2 (patch) | |
| tree | 0ff40799570e25caf3f7af6affaa3370c17e6f3d | |
| parent | 27379f3940435397c9dae361a58d38c2e7adc0d4 (diff) | |
| download | burstdog-f363ff4a929325e708227b5f772583111b1cfdb2.tar.xz | |
| -rw-r--r-- | burstdog.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |
