- Timestamp:
- Nov 19, 2014 3:04:01 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstGIP-2.cpp
r53351 r53352 116 116 ? "tstGIP-2: it: u64NanoTS delta u64TSC UpIntTSC H TransId CpuHz %sTSC Interval History...\n" 117 117 : "tstGIP-2: it: u64NanoTS delta u64TSC UpIntTSC H TransId CpuHz %sTSC Interval History...\n", 118 uCpuHzRef ? " CpuHz Dev" : "");118 uCpuHzRef ? " CpuHz deviation " : ""); 119 119 static SUPGIPCPU s_aaCPUs[2][256]; 120 120 for (uint32_t i = 0; i < cIterations; i++) … … 137 137 int64_t iCpuHzDeviation = pCpu->u64CpuHz - uCpuHzRef; 138 138 if (RT_ABS(iCpuHzDeviation) > 999999999) 139 RTStrPrintf(szCpuHzDeviation, sizeof(szCpuHzDeviation), "%1 0s ", "?");139 RTStrPrintf(szCpuHzDeviation, sizeof(szCpuHzDeviation), "%17s ", "?"); 140 140 else 141 RTStrPrintf(szCpuHzDeviation, sizeof(szCpuHzDeviation), "%10RI64 ", iCpuHzDeviation); 141 { 142 uint32_t uPct = (uint32_t)(RT_ABS(iCpuHzDeviation) * 100000 / pCpu->u64CpuHz + 5); 143 RTStrPrintf(szCpuHzDeviation, sizeof(szCpuHzDeviation), "%10RI64%3d.%02d%% ", 144 iCpuHzDeviation, uPct / 1000, (uPct % 1000) / 10); 145 } 142 146 } 143 147 else
Note:
See TracChangeset
for help on using the changeset viewer.