VirtualBox

Changeset 35664 in vbox for trunk/src/VBox/Storage/testcase


Ignore:
Timestamp:
Jan 20, 2011 9:32:30 PM (14 years ago)
Author:
vboxsync
Message:

tstVDIo: Bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/testcase/tstVDIo.cpp

    r35663 r35664  
     1/* $Id  */
    12/** @file
    23 *
     
    559560            if (paIoReq && RT_SUCCESS(rc))
    560561            {
     562                uint64_t NanoTS = RTTimeNanoTS();
     563
    561564                for (unsigned i = 0; i < cMaxTasksOutstanding; i++)
    562565                    paIoReq[i].idx = i;
     
    680683                }
    681684
     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
    682689                RTSemEventDestroy(EventSem);
    683690                RTMemFree(paIoReq);
     
    11871194    }
    11881195    else
    1189         pIoTest->u.offNext = pIoTest->offEnd < pIoTest->offStart ? pIoTest->offEnd - cbBlkSize : 0;
     1196        pIoTest->u.offNext = pIoTest->offEnd < pIoTest->offStart ? pIoTest->offStart - cbBlkSize : 0;
    11901197
    11911198    return rc;
     
    14871494                                }
    14881495                            }
     1496                            if (RT_SUCCESS(rc))
     1497                                pszSuffix++;
    14891498                        }
    14901499
     
    15981607
    15991608                /* We have the name and value pair now. */
    1600                 bool fMandatory;
     1609                bool fMandatory = false; /* Shut up gcc */
    16011610                rc = tstVDIoScriptArgumentParse(pVDScriptAction, pcszName, pcszValue, &paScriptArgs[cScriptArgs], &fMandatory);
    16021611                if (RT_SUCCESS(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette