mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
SystemMonitor: Only show two decimal digits for the CPU usage
This commit is contained in:
@@ -276,7 +276,7 @@ GUI::Variant ProcessModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
|
||||
case Column::PurgeableNonvolatile:
|
||||
return pretty_byte_size(thread.current_state.amount_purgeable_nonvolatile);
|
||||
case Column::CPU:
|
||||
return thread.current_state.cpu_percent;
|
||||
return String::formatted("{:.2}", thread.current_state.cpu_percent);
|
||||
case Column::Processor:
|
||||
return thread.current_state.cpu;
|
||||
case Column::Name:
|
||||
|
||||
Reference in New Issue
Block a user