Changeset 82639 in vbox
- Timestamp:
- Dec 22, 2019 6:55:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuicontentbase.py
r79092 r82639 274 274 ksShortEditLinkHtml = '✍' 275 275 ## The text/symbol for a very short details link. 276 ksShortDetailsLink = u'\ u2318'276 ksShortDetailsLink = u'\U0001f6c8' 277 277 ## HTML hex entity string for ksShortDetailsLink. 278 ksShortDetailsLinkHtml = '⌘'278 ksShortDetailsLinkHtml = '🛈' 279 279 ## The text/symbol for a very short change log / details / previous page link. 280 280 ksShortChangeLogLink = u'\u2397' … … 282 282 ksShortChangeLogLinkHtml = '⎗' 283 283 ## The text/symbol for a very short reports link. 284 ksShortReportLink = u'\ u2397'284 ksShortReportLink = u'\U0001f4ca' 285 285 ## HTML hex entity string for ksShortReportLink. 286 ksShortReportLinkHtml = '⎗' 286 ksShortReportLinkHtml = '📊' 287 ## The text/symbol for a very short test results link. 288 ksShortTestResultsLink = u'\U0001f5d0' 287 289 288 290 … … 320 322 321 323 # Figure the hour, min and sec counts. 322 cHours = oInterval.seconds / 3600;323 cMinutes = (oInterval.seconds % 3600) / 60;324 cHours = oInterval.seconds // 3600; 325 cMinutes = (oInterval.seconds % 3600) // 60; 324 326 cSeconds = oInterval.seconds - cHours * 3600 - cMinutes * 60; 325 327 … … 332 334 return '%d:%02d:%02d' % (cHours, cMinutes, cSeconds); 333 335 if cSeconds >= 10: 334 return '%d.%ds' % (cSeconds, oInterval.microseconds / 100000);336 return '%d.%ds' % (cSeconds, oInterval.microseconds // 100000); 335 337 if cSeconds > 0: 336 return '%d.%02ds' % (cSeconds, oInterval.microseconds / 10000);337 return '%d ms' % (oInterval.microseconds / 1000,);338 return '%d.%02ds' % (cSeconds, oInterval.microseconds // 10000); 339 return '%d ms' % (oInterval.microseconds // 1000,); 338 340 339 341 @staticmethod … … 349 351 350 352 # Calc display range. 351 iStart = 0 if iCurItem - cWidth / 2 <= cWidth / 4 else iCurItem - cWidth/ 2;353 iStart = 0 if iCurItem - cWidth // 2 <= cWidth // 4 else iCurItem - cWidth // 2; 352 354 iEnd = iStart + cWidth; 353 355 if iEnd > cItems:
Note:
See TracChangeset
for help on using the changeset viewer.