You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
430 B
C
16 lines
430 B
C
#include <stdio.h>
|
|
#include <thread>
|
|
|
|
extern pthread_t memoryThread;
|
|
extern float memused, memmax;
|
|
|
|
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;
|
|
};
|
|
|
|
void *update_meminfo(void*);
|
|
FILE *open_file(const char *file, int *reported); |