Changeset 65499 in vbox for trunk/src/VBox
- Timestamp:
- Jan 28, 2017 10:02:22 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py
r65443 r65499 382 382 uPct = oRow.cHits * 100 / oRow.cTotal; 383 383 aiValues.append(uPct); 384 asValues.append('%u%% (%u/%u)' % (uPct, oRow.cHits, oRow.cTotal)); 384 if uPct >= 10: 385 asValues.append('%u%% (%u/%u)' % (uPct, oRow.cHits, oRow.cTotal)); 386 else: 387 asValues.append('%.1f%% (%u/%u)' % (oRow.cHits * 100.0 / oRow.cTotal, oRow.cHits, oRow.cTotal)); 385 388 else: 386 389 aiValues.append(0); … … 395 398 uPct = oSet.dcHitsPerId[idKey] * 100 / oSet.dcTotalPerId[idKey]; 396 399 aiValues.append(uPct); 397 asValues.append('%u%% (%u/%u)' % (uPct, oSet.dcHitsPerId[idKey], oSet.dcTotalPerId[idKey])); 400 if uPct >= 10: 401 asValues.append('%u%% (%u/%u)' % (uPct, oSet.dcHitsPerId[idKey], oSet.dcTotalPerId[idKey])); 402 else: 403 asValues.append('%.1f%% (%u/%u)' % ( oSet.dcHitsPerId[idKey] * 100.0 / oSet.dcTotalPerId[idKey], 404 oSet.dcHitsPerId[idKey], oSet.dcTotalPerId[idKey],)); 398 405 oTable.addRow('Totals', aiValues, asValues); 399 406
Note:
See TracChangeset
for help on using the changeset viewer.