Opened 6 years ago

Last modified 7 months ago

#11176 reopened bug

[Tracker] status window displays Dec 13, 1901 as finish time

Reported by: diver Owned by: waddlesplash
Priority: normal Milestone: R1
Component: Applications/Tracker Version: R1/Development
Keywords: Cc:
Blocked By: Blocking: #6930, #14122
Platform: All


When emptying Trash with many small files Tracker status displays "Preparing to empty Trash" and it shows Finish: Dec 13, 1901.

Probably has something to do with Unixepoch:

The standard Unix time_t (data type representing a point in time) is a signed integer data type, traditionally of 32 bits (but see below), directly encoding the Unix time number as described in the preceding section. Being 32 bits means that it covers a range of about 136 years in total. The minimum representable time is 1901-12-13, and the maximum representable time is 2038-01-19.

Relevant commits are: hrev35136 and hrev42977.

Change History (8)

comment:1 by diver, 6 years ago

Blocking: 6930 added

comment:2 by waddlesplash, 6 years ago

Owner: changed from stippi to waddlesplash
Status: newassigned

comment:3 by waddlesplash, 7 months ago

Resolution: fixed
Status: assignedclosed

Fixed in hrev54149 (by PulkoMandy).

comment:4 by pulkomandy, 7 months ago

Well, it will now show "in several years", which is only slightly less wrong. We should still investigate why we get a nonsense duration for the copy.

comment:5 by waddlesplash, 7 months ago

Resolution: fixed
Status: closedreopened

comment:6 by ttcoder, 7 months ago

Sorry for the drive-by-commenting, which is an easy way to be off-base, but just in case : this reminds me of a similar ticket (can't find it ATM) about moving files, which also produces silly dates.

It seems the date calculation routine expects to be fed bytes amounts, not file counts. (EDIT) So when moving files, or deleting files, it calculates the elapsed and remaining values as : (FilesDeletedSoFar / TotalFileCount) ... Hence the label talking of "220 bytes per second" (instead of 220 files per second) or something similar.

Maybe the "preparing to empty trash" stage mentionned above, does something similar ?

Last edited 7 months ago by ttcoder (previous) (diff)

comment:7 by vidrep, 7 months ago

It might be this ticket

comment:8 by vidrep, 7 months ago

Blocking: 14122 added
Note: See TracTickets for help on using tickets.