Changeset 53357 in vbox for trunk/src/VBox
- Timestamp:
- Nov 20, 2014 11:56:14 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstGIP-2.cpp
r53356 r53357 64 64 uint64_t uCpuHzRef = 0; 65 65 uint64_t uCpuHzOverallDeviation = 0; 66 int32_t cCpuHzOverallDevCnt = 0; 66 67 RTGETOPTUNION ValueUnion; 67 68 RTGETOPTSTATE GetState; … … 144 145 { 145 146 uCpuHzOverallDeviation += uCpuHzDeviation; 147 cCpuHzOverallDevCnt++; 146 148 uint32_t uPct = (uint32_t)(uCpuHzDeviation * 100000 / uCpuHzRef + 5); 147 149 RTStrPrintf(szCpuHzDeviation, sizeof(szCpuHzDeviation), "%10RI64%3d.%02d%% ", … … 219 221 if (uCpuHzRef) 220 222 { 221 uint32_t uPct = (uint32_t)(uCpuHzOverallDeviation * 100000 / c Iterations / g_pSUPGlobalInfoPage->cCpus/ uCpuHzRef + 5);223 uint32_t uPct = (uint32_t)(uCpuHzOverallDeviation * 100000 / cCpuHzOverallDevCnt / uCpuHzRef + 5); 222 224 RTPrintf("tstGIP-2: Overall CpuHz deviation: %d.%02d%%\n", uPct / 1000, (uPct % 1000) / 10); 223 225 }
Note:
See TracChangeset
for help on using the changeset viewer.