Increasing breakdown row padding to match CPU

This commit is contained in:
Rodrigo Arias 2023-03-24 19:26:43 +01:00 committed by Rodrigo Arias Mallo
parent 881e556e06
commit a827113c2a

View File

@ -278,7 +278,7 @@ model_nanos6_breakdown_finish(struct emu *emu,
struct prf *prf = pvt_get_prf(bemu->pvt);
for (int64_t row = 0; row < bemu->nphycpus; row++) {
char name[128];
if (snprintf(name, 128, "~CPU %3ld", bemu->nphycpus - row) >= 128) {
if (snprintf(name, 128, "~CPU %4ld", bemu->nphycpus - row) >= 128) {
err("label too long");
return -1;
}