After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 347007 - ETA wrong in task window when task_count = 0
ETA wrong in task window when task_count = 0
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
pre-1.0 betas
Other Linux
: Normal trivial
: 1.0
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2006-07-08 22:00 UTC by Richard Gibert
Modified: 2006-07-09 04:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (1.05 KB, patch)
2006-07-08 22:15 UTC, Richard Gibert
committed Details | Review

Description Richard Gibert 2006-07-08 22:00:12 UTC
Using Pan v0.103, when the task pane is empty the ETA is shown as 1011703407:30:08.
Comment 1 Richard Gibert 2006-07-08 22:15:39 UTC
Created attachment 68639 [details] [review]
Patch

This problem is caused by pan/gui/task-pane.cc lines 265-268.  When task_count == 0, KiBps = 0, causing a divide by 0.

Attached is a patch to fix this issue that checks if task_count = 0 and if so just sets seconds, minutes, and hours to 0.
Comment 2 Charles Kerr 2006-07-09 04:58:01 UTC
Fixed.  Thanks for the patch!