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 324813 - numbers of the remaining time in the copy dialog are not padded with zero
numbers of the remaining time in the copy dialog are not padded with zero
Status: RESOLVED DUPLICATE of bug 376291
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.16.x
Other All
: Low normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-22 15:17 UTC by Teppo Turtiainen
Modified: 2006-12-19 14:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
screenshot (20.25 KB, image/png)
2005-12-22 15:17 UTC, Teppo Turtiainen
  Details
pad seconds with zero in copy progress dialog (892 bytes, patch)
2006-12-04 17:25 UTC, Teppo Turtiainen
none Details | Review

Description Teppo Turtiainen 2005-12-22 15:17:03 UTC
Please describe the problem:
The numbers of the remaining time in "Copying files" dialog are not padded with
zero. Please see attached screenshot.

Steps to reproduce:
1. Copy files and observe the "Copying files" dialog.

Actual results:
Times like "2:38:1" in the screenshot are displayed.

Expected results:
Times are displayed with padded zeros like "2:38:01".

Does this happen every time?
Yes.

Other information:
Comment 1 Teppo Turtiainen 2005-12-22 15:17:51 UTC
Created attachment 56301 [details]
screenshot
Comment 2 Christian Neumair 2005-12-22 19:50:31 UTC
Thanks for your bug report, good catch! I'm milestoning this one to 2.14. We should probably use the same construct as the epiphany download manager, which uses "%u:%02u.%02u" if more than one hour remains, and otherwise "%d:%02d".

I'd really appreciate if you could tackle this and write a patch - this is not rocket science. The strings are in libnautilus-private/nautilus-file-operations-progress.c:time_remaining_callback. For the sake of consistency, we should IMHO change time strings in the str variable assignments to "%d:%02d:%02d" and "%02d:%02d".
Comment 3 Teppo Turtiainen 2006-12-04 17:25:56 UTC
Created attachment 77659 [details] [review]
pad seconds with zero in copy progress dialog

I don't know any C, I've never created a patch before and I have no idea how to build Nautilus, so I can't check if this actually works, but here is a patch anyway.

I didn't pad the minutes in the minutes:seconds string with zero, because I think the extra zero at the beginning isn't really needed.
Comment 4 Martin Wehner 2006-12-19 14:46:59 UTC
Thanks for your effort, I committed a similar patch from bug 376291.

*** This bug has been marked as a duplicate of 376291 ***