Changeset 11478 in vbox for trunk/src/VBox/Main/linux
- Timestamp:
- Aug 19, 2008 12:11:10 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34963
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/linux/PerformanceLinux.cpp
r11386 r11478 25 25 #include <iprt/alloc.h> 26 26 #include <iprt/err.h> 27 #include <iprt/mp.h> 27 28 #include <iprt/param.h> 28 29 #include <iprt/string.h> … … 96 97 int CollectorLinux::getHostCpuMHz(ULONG *mhz) 97 98 { 98 return E_NOTIMPL; 99 RTCPUID nProcessors = RTMpGetCount(); 100 uint64_t uTotalMHz = 0; 101 102 for (RTCPUID i = 0; i < nProcessors; ++i) 103 uTotalMHz += RTMpGetCurFrequency(i); 104 105 *mhz = (ULONG)(uTotalMHz / nProcessors); 106 return VINF_SUCCESS; 99 107 } 100 108
Note:
See TracChangeset
for help on using the changeset viewer.