File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change 39
39
40
40
struct sysinfo
41
41
{
42
- unsigned long uptime ;
43
- unsigned long loads [3 ];
44
- unsigned long totalram ;
45
- unsigned long freeram ;
46
- unsigned long sharedram ;
47
- unsigned long bufferram ;
48
- unsigned long totalswap ;
49
- unsigned long freeswap ;
50
- unsigned short procs ;
51
- unsigned short pad ;
52
- unsigned long totalhigh ;
53
- unsigned long freehigh ;
54
- unsigned mem_unit ;
55
- char __reserved [256 ];
42
+ unsigned long uptime ; /* Seconds since boot */
43
+ unsigned long loads [3 ]; /* 1, 5, and 15 minute load averages */
44
+ unsigned long totalram ; /* Total usable main memory size */
45
+ unsigned long freeram ; /* Available memory size */
46
+ unsigned long sharedram ; /* Amount of shared memory */
47
+ unsigned long bufferram ; /* Memory used by buffers */
48
+ unsigned long totalswap ; /* Total swap space size */
49
+ unsigned long freeswap ; /* Swap space still available */
50
+ unsigned short procs ; /* Number of current processes */
51
+ unsigned short pad ; /* Padding for alignment */
52
+ unsigned long totalhigh ; /* Total high memory size */
53
+ unsigned long freehigh ; /* Available high memory size */
54
+ unsigned mem_unit ; /* Memory unit size in bytes */
56
55
};
57
56
58
57
/****************************************************************************
You can’t perform that action at this time.
0 commit comments