diff options
author | Ron Yorston <rmy@pobox.com> | 2021-02-19 13:10:06 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-02-19 13:10:06 +0000 |
commit | 5369ddc1db797a96cced91bd467d172d41d41f9d (patch) | |
tree | e23a4a4d60c911dee512185cd4bc98429ebe0d1a /include | |
parent | b4fcd6e378f30ffa36a87617d4c9e6113f70308d (diff) | |
download | busybox-w32-5369ddc1db797a96cced91bd467d172d41d41f9d.tar.gz busybox-w32-5369ddc1db797a96cced91bd467d172d41d41f9d.tar.bz2 busybox-w32-5369ddc1db797a96cced91bd467d172d41d41f9d.zip |
win32: update sysinfo(2) implementation
Add a call to GetPerformanceInfo. Treat the SystemCache member of
the PERFORMANCE_INFORMATION structure as buffer RAM. Deduct it
from available RAM.
The numbers reported by 'free' move about in vaguely sensible
ways when I start and stop programs, though I still don't know
if they're in any way accurate.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/mingw.h b/include/mingw.h index c2a8b61bf..5cb5cb88c 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -364,8 +364,6 @@ struct sysinfo { | |||
364 | unsigned long totalhigh; /* Total high memory size */ | 364 | unsigned long totalhigh; /* Total high memory size */ |
365 | unsigned long freehigh; /* Available high memory size */ | 365 | unsigned long freehigh; /* Available high memory size */ |
366 | unsigned int mem_unit; /* Memory unit size in bytes */ | 366 | unsigned int mem_unit; /* Memory unit size in bytes */ |
367 | char _f[20-2*sizeof(long)-sizeof(int)]; | ||
368 | /* Padding to 64 bytes */ | ||
369 | }; | 367 | }; |
370 | 368 | ||
371 | int sysinfo(struct sysinfo *info); | 369 | int sysinfo(struct sysinfo *info); |