Ticket #2374 (new enhancement)

Opened 14 years ago

Last modified 13 years ago

show exactly files and free space sizes

Reported by: x905 Owned by:
Priority: trivial Milestone: Future Releases
Component: mc-core Version: 4.7.4
Keywords: Cc: gotar@…
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

  1. show exactly free space by bytes at bottom of panel, for example: "10.130.432/152G (6%)"
  2. also then using ctrl-space to calculate size of multiple selected dirs, from some size [~1gb?] mc starts to round size to KB - dont need to do it

of course, 1 and 2 may be optional

Change History

comment:1 Changed 14 years ago by ossi

calculating free space precisely makes no sense, as the file system overhead is dynamic.

apart from that your example is rather obviously in kilobytes, not in bytes.

generally speaking, more than three significant digits seldomly make much sense.

in a proper gui, one would have a tooltip above the size label which would display more precise information than usually on screen. in mc, a click-activated "filesystem info" dialog could fill that role. don't make it an option in the classical sense in any case.

comment:2 Changed 14 years ago by andrew_b

  • Priority changed from major to trivial

comment:3 follow-up: ↓ 4 Changed 14 years ago by x905

a may agree with p.1 (but i prefer to see exactly free space in bytes, and this size should be updated one time per second if changed)

as for p.2 - calculated size of dirs _must_ be in bytes - i want to use it to compare dirs after copy from removable media or from network (now i use some script, but it not work on ftp)

comment:4 in reply to: ↑ 3 ; follow-up: ↓ 5 Changed 14 years ago by gotar

  • Cc gotar@… added

Replying to x905:

i prefer to see exactly free space in bytes, and this size should be updated one time per second if changed

You obviously have bad habit (every modern device and filesystem allocates space in blocks) and didn't work over busy network. If you want to see numbers changing just press ctrl-r, but it doesn't much sense anyway.

calculated size of dirs _must_ be in bytes - i want to use it to compare dirs after copy from removable media or from network

F9-c-c-s

And again - bad habit. If you don't trust your transmit media you _must_ use some md5 tool, syncing should be done via rsync or other appropriate tools.

However the kilobyte_si option could be reimplemented to tristate, e.g.:

sizes=[binary|si|bytes]

where binary means human-readable with 210 units, si human-readable with 103 and bytes as plain numbers.

comment:5 in reply to: ↑ 4 Changed 14 years ago by x905

Replying to gotar:

F9-c-c-s

this command dont compare dirs, but only files

And again - bad habit. If you don't trust your transmit media you _must_ use some md5 tool, syncing should be done via rsync or other appropriate tools.

i may not trust my memory )
anyway size of dir is good to be displayed exactly as user want: in bytes, kb, mb ... (as option)

comment:6 Changed 13 years ago by andrew_b

  • Branch state set to no branch
  • Milestone changed from 4.7 to Future Releases
Note: See TracTickets for help on using tickets.