Changeset 45099 in vbox for trunk/src/VBox
- Timestamp:
- Mar 20, 2013 8:27:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/systemmem-linux.cpp
r43548 r45099 51 51 if (rc == 0) 52 52 { 53 *pcb = (uint64_t) (info.totalram * (unsigned long)info.mem_unit);53 *pcb = (uint64_t)info.totalram * info.mem_unit; 54 54 return VINF_SUCCESS; 55 55 } … … 68 68 /* XXX Actually this is not quite correct. We would also need to add the cached 69 69 * RAM but this information is not available in sysinfo. */ 70 *pcb = ( uint64_t)((info.freeram + info.bufferram) * (unsigned long)info.mem_unit);70 *pcb = ((uint64_t)info.freeram + info.bufferram) * info.mem_unit; 71 71 return VINF_SUCCESS; 72 72 }
Note:
See TracChangeset
for help on using the changeset viewer.