Changeset 35664 in vbox for trunk/src/VBox/Storage/testcase
- Timestamp:
- Jan 20, 2011 9:32:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/testcase/tstVDIo.cpp
r35663 r35664 1 /* $Id */ 1 2 /** @file 2 3 * … … 559 560 if (paIoReq && RT_SUCCESS(rc)) 560 561 { 562 uint64_t NanoTS = RTTimeNanoTS(); 563 561 564 for (unsigned i = 0; i < cMaxTasksOutstanding; i++) 562 565 paIoReq[i].idx = i; … … 680 683 } 681 684 685 NanoTS = RTTimeNanoTS() - NanoTS; 686 uint64_t SpeedKBs = (uint64_t)(cbIo / (NanoTS / 1000000000.0) / 1024); 687 RTPrintf("I/O Test: Throughput %lld kb/s\n", SpeedKBs); 688 682 689 RTSemEventDestroy(EventSem); 683 690 RTMemFree(paIoReq); … … 1187 1194 } 1188 1195 else 1189 pIoTest->u.offNext = pIoTest->offEnd < pIoTest->offStart ? pIoTest->off End- cbBlkSize : 0;1196 pIoTest->u.offNext = pIoTest->offEnd < pIoTest->offStart ? pIoTest->offStart - cbBlkSize : 0; 1190 1197 1191 1198 return rc; … … 1487 1494 } 1488 1495 } 1496 if (RT_SUCCESS(rc)) 1497 pszSuffix++; 1489 1498 } 1490 1499 … … 1598 1607 1599 1608 /* We have the name and value pair now. */ 1600 bool fMandatory ;1609 bool fMandatory = false; /* Shut up gcc */ 1601 1610 rc = tstVDIoScriptArgumentParse(pVDScriptAction, pcszName, pcszValue, &paScriptArgs[cScriptArgs], &fMandatory); 1602 1611 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.