mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
SystemMonitor: Make byte counts in ProcessStateWidget human-readable
This commit is contained in:
parent
8d721dc0f7
commit
2b89020b6c
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/2b89020b6c Pull-request: https://github.com/SerenityOS/serenity/pull/19346
@ -306,17 +306,17 @@ GUI::Variant ProcessModel::data(GUI::ModelIndex const& index, GUI::ModelRole rol
|
||||
case Column::CowFaults:
|
||||
return thread.current_state.cow_faults;
|
||||
case Column::IPv4SocketReadBytes:
|
||||
return thread.current_state.ipv4_socket_read_bytes;
|
||||
return human_readable_size_long(thread.current_state.ipv4_socket_read_bytes, UseThousandsSeparator::Yes);
|
||||
case Column::IPv4SocketWriteBytes:
|
||||
return thread.current_state.ipv4_socket_write_bytes;
|
||||
return human_readable_size_long(thread.current_state.ipv4_socket_write_bytes, UseThousandsSeparator::Yes);
|
||||
case Column::UnixSocketReadBytes:
|
||||
return thread.current_state.unix_socket_read_bytes;
|
||||
return human_readable_size_long(thread.current_state.unix_socket_read_bytes, UseThousandsSeparator::Yes);
|
||||
case Column::UnixSocketWriteBytes:
|
||||
return thread.current_state.unix_socket_write_bytes;
|
||||
return human_readable_size_long(thread.current_state.unix_socket_write_bytes, UseThousandsSeparator::Yes);
|
||||
case Column::FileReadBytes:
|
||||
return thread.current_state.file_read_bytes;
|
||||
return human_readable_size_long(thread.current_state.file_read_bytes, UseThousandsSeparator::Yes);
|
||||
case Column::FileWriteBytes:
|
||||
return thread.current_state.file_write_bytes;
|
||||
return human_readable_size_long(thread.current_state.file_write_bytes, UseThousandsSeparator::Yes);
|
||||
case Column::Pledge:
|
||||
return thread.current_state.pledge;
|
||||
case Column::Veil:
|
||||
|
Loading…
Reference in New Issue
Block a user