Bug 23501
Summary: | If minutes >= 60, then displays 01:60:00, say | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Nils Barth <nils_barth> |
Component: | up2date | Assignee: | Preston Brown <pbrown> |
Status: | CLOSED ERRATA | QA Contact: | Jay Turner <jturner> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | srevivo |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-03-14 13:00:36 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nils Barth
2001-01-07 05:32:16 UTC
/usr/share/rhn/up2date/gui.py:361 tstr = _("%d of %d kb transferred at %d k/sec\nPackage transfer time: %02d:%02d:%02d (%02d:%02d:%02d remaining)") % (amount / 1024, total / 1024, bps / 1024, totalTime / (60*60), totalTime / 60, totalTime % 60, remaining / (60*60), remaining / 60, remaining % 60) should read: tstr = _("%d of %d kb transferred at %d k/sec\nPackage transfer time: %02d:%02d:%02d (%02d:%02d:%02d remaining)") % (amount / 1024, total / 1024, bps / 1024, totalTime / (60*60), (totalTime % 60*60) / 60, totalTime % 60, remaining / (60*60), (remaining % 60*60) / 60, remaining % 60) Sorry, I should know better than to edit code in a comment window when I should already have gone home for the day *sighs*. The change should read (in order to avoid problems with evaluation order): /usr/share/rhn/up2date/gui.py:361 tstr = _("%d of %d kb transferred at %d k/sec\nPackage transfer time: %02d:%02d:%02d (%02d:%02d:%02d remaining)") % (amount / 1024, total /1024, bps / 1024, totalTime / (60*60), totalTime / 60, totalTime % 60, remaining / (60*60), remaining / 60, remaining % 60) should read: tstr = _("%d of %d kb transferred at %d k/sec\nPackage transfer time: %02d:%02d:%02d (%02d:%02d:%02d remaining)") % (amount / 1024, total / 1024, bps / 1024, totalTime / (60*60), (totalTime % 3600) / 60, totalTime % 60, remaining / (60*60), (remaining % 3600) / 60, remaining % 60) Cool. Will make the change. Should be in the next up2date release. *** Bug 28157 has been marked as a duplicate of this bug. *** Assigned QA to jturner fixed in CVS. *** Bug 28248 has been marked as a duplicate of this bug. *** *** Bug 30191 has been marked as a duplicate of this bug. *** I am still seeing this problem with the 3/7/01 CVS code over dial-up. OK, testing in the 3/14 tree shows that this problems appears to be solved. We are getting valid estimates for the time for transfer, so that's a good thing. I will test this evening with dial-up and make sure that we are displaying minutes and hours correctly. addressed in errata due out today. |