|
@@ -661,13 +661,13 @@ void build_performance_tab(GUI::Widget& graphs_container)
|
|
|
cpu_graph.set_max(100);
|
|
|
cpu_graph.set_value_format(0, {
|
|
|
.graph_color_role = ColorRole::SyntaxPreprocessorStatement,
|
|
|
- .text_formatter = [](int value) {
|
|
|
+ .text_formatter = [](u64 value) {
|
|
|
return String::formatted("Total: {}%", value);
|
|
|
},
|
|
|
});
|
|
|
cpu_graph.set_value_format(1, {
|
|
|
.graph_color_role = ColorRole::SyntaxPreprocessorValue,
|
|
|
- .text_formatter = [](int value) {
|
|
|
+ .text_formatter = [](u64 value) {
|
|
|
return String::formatted("Kernel: {}%", value);
|
|
|
},
|
|
|
});
|
|
@@ -687,19 +687,19 @@ void build_performance_tab(GUI::Widget& graphs_container)
|
|
|
auto& memory_graph = *graphs_container.find_descendant_of_type_named<SystemMonitor::GraphWidget>("memory_graph");
|
|
|
memory_graph.set_value_format(0, {
|
|
|
.graph_color_role = ColorRole::SyntaxComment,
|
|
|
- .text_formatter = [](int bytes) {
|
|
|
+ .text_formatter = [](u64 bytes) {
|
|
|
return String::formatted("Committed: {}", human_readable_size(bytes));
|
|
|
},
|
|
|
});
|
|
|
memory_graph.set_value_format(1, {
|
|
|
.graph_color_role = ColorRole::SyntaxPreprocessorStatement,
|
|
|
- .text_formatter = [](int bytes) {
|
|
|
+ .text_formatter = [](u64 bytes) {
|
|
|
return String::formatted("Allocated: {}", human_readable_size(bytes));
|
|
|
},
|
|
|
});
|
|
|
memory_graph.set_value_format(2, {
|
|
|
.graph_color_role = ColorRole::SyntaxPreprocessorValue,
|
|
|
- .text_formatter = [](int bytes) {
|
|
|
+ .text_formatter = [](u64 bytes) {
|
|
|
return String::formatted("Kernel heap: {}", human_readable_size(bytes));
|
|
|
},
|
|
|
});
|