|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef CHECK_MEMFREE_H
#define CHECK_MEMFREE_H
#include <iostream>
#include <sstream>
#include <fstream>
#include <limits>
#include <ctype.h>
#include <cstdlib>
#include <unistd.h>
#include <cstring>
#include <sys/time.h>
#include "range.h"
|
|
17
|
#include "auxiliar.h"
|
|
18
|
|
|
19
|
#define MEMINFO_FILE "/proc/meminfo"
|
|
20
21
|
#define VERSION "1.0"
|
|
22
23
24
25
26
27
|
struct meminfo {
ssize_t totalMem;
ssize_t freeMem;
};
typedef struct meminfo MEMINFO;
|
|
28
29
30
31
32
|
int getNum(ifstream *file);
void printVersion();
void printHelp(bool longVersion);
#endif
|
|
33
|
|