Changeset 61291 in vbox for trunk/src/VBox/ValidationKit/testmanager/core
- Timestamp:
- May 30, 2016 12:57:40 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107583
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/report.py
r61290 r61291 373 373 self.cHits = 0; # Sum number of hits in all periods and all reasons. 374 374 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. 376 376 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. 378 378 self.diPeriodFirst = {}; # The period number a reason was first seen (keyed by subject ID). 379 379 self.diPeriodLast = {}; # The period number a reason was last seen (keyed by subject ID). … … 392 392 """ Worker for appendPeriod and recalcStats. """ 393 393 self.cHits += oPeriod.cHits; 394 if oPeriod.c Hits > self.cMaxHits:395 self.cMaxHits = oPeriod.c Hits;396 if oPeriod.c Hits < self.cMinHits:397 self.cMinHits = oPeriod.c Hits;398 399 if len(oPeriod.aoRows) > self.cMax Hits:400 self.cMax Hits = len(oPeriod.aoRows);401 if len(oPeriod.aoRows) < self.cMin Hits:402 self.cMin Hits = 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); 403 403 404 404 def recalcStats(self): … … 406 406 self.cHits = 0; 407 407 self.cMaxHits = 0; 408 self.cMinHits = 0;408 self.cMinHits = 99999999; 409 409 self.cMaxRows = 0; 410 self.cMinRows = 0;410 self.cMinRows = 99999999; 411 411 self.diPeriodFirst = {}; 412 412 self.diPeriodLast = {}; … … 474 474 super(ReportPeriodSetWithTotalBase, self)._doStatsForPeriod(oPeriod); 475 475 self.cTotal += oPeriod.cTotal; 476 if oPeriod.c Total > self.cMaxTotal:477 self.cMaxTotal = oPeriod.c Total;478 if oPeriod.c Total < self.cMinTotal:479 self.cMinTotal = oPeriod.c Total;476 if oPeriod.cMaxTotal > self.cMaxTotal: 477 self.cMaxTotal = oPeriod.cMaxTotal; 478 if oPeriod.cMinTotal < self.cMinTotal: 479 self.cMinTotal = oPeriod.cMinTotal; 480 480 481 481 if oPeriod.uMaxPct > self.uMaxPct:
Note:
See TracChangeset
for help on using the changeset viewer.