VirtualBox

Changeset 56573 in vbox


Ignore:
Timestamp:
Jun 22, 2015 10:15:43 AM (9 years ago)
Author:
vboxsync
Message:

Storage/tstVDIo: Avoid division by 0

File:
1 edited

Legend:

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

    r56529 r56573  
    678678static uint64_t tstVDIoGetSpeedKBs(uint64_t cbIo, uint64_t tsNano)
    679679{
     680    /* Seen on one of the testboxes, avoid division by 0 below. */
     681    if (tsNano == 0)
     682        return 0;
     683
    680684    /*
    681685     * Blow up the value until we can do the calculation without getting 0 as
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