ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
410 stars 84 forks source link

Fixed an issue causing memory values to be reported incorrectly. #6

Closed zkWildfire closed 7 years ago

zkWildfire commented 7 years ago

Available memory and total memory values were reversed, causing total memory to be stored in the available memory field in the iware::system::memory_t struct.

nabijaczleweli commented 7 years ago

Hey, nice catch!

zkWildfire commented 7 years ago

Yep, no problem! I had to do a double take when I noticed my total and available memory values were reversed in my test program. Glad to help though; your library has already saved me a ton of time!

nabijaczleweli commented 7 years ago

That's a great thing to hear as a developer :)