mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
Kernel: Access Processor static methods statically
SonarCloud flagged this "Code Smell", where we are accessing these static methods as if they are instance methods. While it is technically possible, it is very confusing to read when you realize they are static functions.
This commit is contained in:
parent
0223faf6f4
commit
92844a6af6
2 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ public:
|
|||
auto current_thread = Thread::current();
|
||||
// FIXME: We currently don't collect samples while idle.
|
||||
// That will be an interesting mode to add in the future. :^)
|
||||
if (!current_thread || current_thread == Processor::current().idle_thread())
|
||||
if (!current_thread || current_thread == Processor::idle_thread())
|
||||
return;
|
||||
|
||||
auto lost_samples = delay.to_microseconds() / ideal_interval.to_microseconds();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue