VirtualBox

Ignore:
Timestamp:
May 30, 2016 12:57:40 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107583
Message:

arg. bugs. sorting indicator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/report.py

    r61290 r61291  
    373373        self.cHits              = 0;            # Sum number of hits in all periods and all reasons.
    374374        self.cMaxHits           = 0;            # Max hits in a row.
    375         self.cMinHits           = 0;            # Min hits in a row.
     375        self.cMinHits           = 99999999;     # Min hits in a row.
    376376        self.cMaxRows           = 0;            # Max number of rows in a period.
    377         self.cMinRows           = 0;            # Min number of rows in a period.
     377        self.cMinRows           = 99999999;     # Min number of rows in a period.
    378378        self.diPeriodFirst      = {};           # The period number a reason was first seen (keyed by subject ID).
    379379        self.diPeriodLast       = {};           # The period number a reason was last seen (keyed by subject ID).
     
    392392        """ Worker for appendPeriod and recalcStats. """
    393393        self.cHits += oPeriod.cHits;
    394         if oPeriod.cHits > self.cMaxHits:
    395             self.cMaxHits = oPeriod.cHits;
    396         if oPeriod.cHits < self.cMinHits:
    397             self.cMinHits = oPeriod.cHits;
    398 
    399         if len(oPeriod.aoRows) > self.cMaxHits:
    400             self.cMaxHits = len(oPeriod.aoRows);
    401         if len(oPeriod.aoRows) < self.cMinHits:
    402             self.cMinHits = len(oPeriod.aoRows);
     394        if oPeriod.cMaxHits > self.cMaxHits:
     395            self.cMaxHits = oPeriod.cMaxHits;
     396        if oPeriod.cMinHits < self.cMinHits:
     397            self.cMinHits = oPeriod.cMinHits;
     398
     399        if len(oPeriod.aoRows) > self.cMaxRows:
     400            self.cMaxRows = len(oPeriod.aoRows);
     401        if len(oPeriod.aoRows) < self.cMinRows:
     402            self.cMinRows = len(oPeriod.aoRows);
    403403
    404404    def recalcStats(self):
     
    406406        self.cHits          = 0;
    407407        self.cMaxHits       = 0;
    408         self.cMinHits       = 0;
     408        self.cMinHits       = 99999999;
    409409        self.cMaxRows       = 0;
    410         self.cMinRows       = 0;
     410        self.cMinRows       = 99999999;
    411411        self.diPeriodFirst  = {};
    412412        self.diPeriodLast   = {};
     
    474474        super(ReportPeriodSetWithTotalBase, self)._doStatsForPeriod(oPeriod);
    475475        self.cTotal += oPeriod.cTotal;
    476         if oPeriod.cTotal > self.cMaxTotal:
    477             self.cMaxTotal = oPeriod.cTotal;
    478         if oPeriod.cTotal < self.cMinTotal:
    479             self.cMinTotal = oPeriod.cTotal;
     476        if oPeriod.cMaxTotal > self.cMaxTotal:
     477            self.cMaxTotal = oPeriod.cMaxTotal;
     478        if oPeriod.cMinTotal < self.cMinTotal:
     479            self.cMinTotal = oPeriod.cMinTotal;
    480480
    481481        if oPeriod.uMaxPct > self.uMaxPct:
Note: See TracChangeset for help on using the changeset viewer.

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