mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
WindowServer: Use CFile in the CPU monitor code.
This commit is contained in:
parent
34087a9f90
commit
c4c7f224d5
2 changed files with 10 additions and 13 deletions
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/CircularQueue.h>
|
||||
#include <LibCore/CFile.h>
|
||||
#include <stdio.h>
|
||||
|
||||
class Painter;
|
||||
|
@ -19,6 +20,6 @@ private:
|
|||
void get_cpu_usage(unsigned& busy, unsigned& idle);
|
||||
|
||||
CircularQueue<float, 30> m_cpu_history;
|
||||
FILE* m_fp { nullptr };
|
||||
CFile m_proc_all;
|
||||
bool m_dirty { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue