mirror of
https://github.com/RGBCube/serenity
synced 2025-05-26 02:05:08 +00:00
Kernel+LibCore+SystemMonitor: Make thread statistics values 64-bit
Thread statistics values which count bytes are now 64-bit. This avoids overflow when these values go above 4GiB.
This commit is contained in:
parent
75307803a2
commit
8d721dc0f7
4 changed files with 36 additions and 36 deletions
|
@ -68,12 +68,12 @@ ErrorOr<AllProcessesStatistics> ProcessStatisticsReader::get_all(SeekableStream&
|
|||
thread.inode_faults = thread_object.get_u32("inode_faults"sv).value_or(0);
|
||||
thread.zero_faults = thread_object.get_u32("zero_faults"sv).value_or(0);
|
||||
thread.cow_faults = thread_object.get_u32("cow_faults"sv).value_or(0);
|
||||
thread.unix_socket_read_bytes = thread_object.get_u32("unix_socket_read_bytes"sv).value_or(0);
|
||||
thread.unix_socket_write_bytes = thread_object.get_u32("unix_socket_write_bytes"sv).value_or(0);
|
||||
thread.ipv4_socket_read_bytes = thread_object.get_u32("ipv4_socket_read_bytes"sv).value_or(0);
|
||||
thread.ipv4_socket_write_bytes = thread_object.get_u32("ipv4_socket_write_bytes"sv).value_or(0);
|
||||
thread.file_read_bytes = thread_object.get_u32("file_read_bytes"sv).value_or(0);
|
||||
thread.file_write_bytes = thread_object.get_u32("file_write_bytes"sv).value_or(0);
|
||||
thread.unix_socket_read_bytes = thread_object.get_u64("unix_socket_read_bytes"sv).value_or(0);
|
||||
thread.unix_socket_write_bytes = thread_object.get_u64("unix_socket_write_bytes"sv).value_or(0);
|
||||
thread.ipv4_socket_read_bytes = thread_object.get_u64("ipv4_socket_read_bytes"sv).value_or(0);
|
||||
thread.ipv4_socket_write_bytes = thread_object.get_u64("ipv4_socket_write_bytes"sv).value_or(0);
|
||||
thread.file_read_bytes = thread_object.get_u64("file_read_bytes"sv).value_or(0);
|
||||
thread.file_write_bytes = thread_object.get_u64("file_write_bytes"sv).value_or(0);
|
||||
process.threads.append(move(thread));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue