VirtualBox

Ignore:
Timestamp:
Jul 7, 2016 9:59:30 AM (8 years ago)
Author:
vboxsync
Message:

reporter.py: count polling as idle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/reporter.py

    r62084 r62099  
    889889        return False;
    890890
    891     def _xmlFlushIfNecessary(self):
     891    def _xmlFlushIfNecessary(self, fPolling = False):
    892892        """Flushes the XML back log if necessary."""
    893893        tsNow = utils.timestampSecond();
    894894        cSecs     = tsNow - self._secTsXmlFlush;
    895895        cSecsLast = tsNow - self._secTsXmlLast;
    896         self._secTsXmlLast = tsNow;
     896        if fPolling is not True:
     897            self._secTsXmlLast = tsNow;
    897898        self._writeOutput('xml-debug/%s: %s s since flush, %s s since poll'
    898899                          % (len(self._asXml), cSecs, cSecsLast,)); # temporarily while debugging flush/poll problem.
     
    943944        if len(self._asXml) > 0:
    944945            g_oLock.acquire();
    945             self._xmlFlushIfNecessary();
     946            self._xmlFlushIfNecessary(fPolling = True);
    946947            g_oLock.release();
    947948        return None;
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