MangoHud/src/memory.h

15 lines
397 B
C
Raw Normal View History

2020-01-31 20:09:55 +00:00
#include <stdio.h>
#include <thread>
2020-01-31 21:48:12 +00:00
extern float memused, memmax;
2020-01-31 20:09:55 +00:00
struct memory_information {
/* memory information in kilobytes */
unsigned long long mem, memwithbuffers, memeasyfree, memfree, memmax,
memdirty;
unsigned long long swap, swapfree, swapmax;
unsigned long long bufmem, buffers, cached;
};
2020-05-01 21:55:21 +00:00
void update_meminfo(void);
2020-01-31 20:09:55 +00:00
FILE *open_file(const char *file, int *reported);