firelzrd/bore-scheduler

PIDs fixing in borestat

Closed this issue · 5 comments

Pids are trimmed, please change to 18

rest = line[19..].strip.split(/\s+/)

Trimmed in what Linux version and above?
Or can you show me the commit for that change, please?
To support multiple versions, I add branch points instead of just modifying the fixed value.
Your cooperation will be highly appreciated.

root@gentoo:~] # uname -a
Linux gentoo 6.6.21-x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  8 19:48:30 EET 2024 x86_64 Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz GenuineIntel GNU/Linux

Problematic line is below...

 Sqemu-system-x86 25989     10536.721804 E     10538.681960         2.000000     14289.018514    383884   120         0.000000     14289.018514         0.000000         0.000000 20 /machine.slice/machine-qemu\x2d1\x2dwin10glass.scope/libvirt/emulator

irb(main):001> ' Sqemu-system-x86 '.length
=> 18
irb(main):002> ' Sqemu-system-x86 25989 10536.721804 E 10538.681960 2.000000 14289.018514 383884 120 0.000000 14289.018514 0.000000 0.000000 20 /machine.slice/machine-qemu\x2d1\x2dwin10glass.scope/libvirt/emulator'.index('25989')
=> 18

Ah, I understand that my current version uses 19.
Fixing right away.
Thanks.