1
Fork 0
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:
Andreas Kling 2019-04-18 00:12:04 +02:00
parent 34087a9f90
commit c4c7f224d5
2 changed files with 10 additions and 13 deletions

View file

@ -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 };
};