PIDs fixing in borestat
Closed this issue · 5 comments
firelzrd commented
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.
dim-geo commented
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
firelzrd commented
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
dim-geo commented
Exactly and since ruby is 0 based we need to substring a character earlier,
thus the change from 19 to 18.
Στις Τρί, 12 Μαρ 2024, 12:18 ο χρήστης firelzrd ***@***.***>
έγραψε:
… 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
—
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNOHTJJ36G4LSGOS45E3XLYX3I5VAVCNFSM6AAAAABEQJWQK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJRGI3TONZVHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
firelzrd commented
Ah, I understand that my current version uses 19.
Fixing right away.
Thanks.