summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index a1ce03fe9d..fb512ea546 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -581,7 +581,7 @@ bool Process::dump_perfcore()
return false;
}
auto builder = builder_or_error.release_value();
- if (!m_perf_event_buffer->to_json(builder)) {
+ if (m_perf_event_buffer->to_json(builder).is_error()) {
dbgln("Failed to generate perfcore for pid {}: Could not serialize performance events to JSON.", pid().value());
return false;
}