Re: [Midnight Commander] #268: [PATCH] Allow using SI-based size prefixes
- From: "Ticket System" <tickets midnight-commander org>
- To: tux centrum cz
- Cc: mc-devel gnome org
- Subject: Re: [Midnight Commander] #268: [PATCH] Allow using SI-based size prefixes
- Date: Sat, 07 Feb 2009 15:04:06 -0000
#268: [PATCH] Allow using SI-based size prefixes
--------------------------+-------------------------------------------------
Reporter: bilbo | Owner: bilbo
Type: enhancement | Status: accepted
Priority: major | Milestone: 4.7
Component: mc-core | Version: 4.6.2
Resolution: | Keywords: rework
Blocking: | Blockedby:
--------------------------+-------------------------------------------------
Changes (by slyfox):
* keywords: review => rework
Comment:
Look here:
> 279 /*
> 280 * If true, SI units (1000 based) will be used for
> 281 * larger units (kilobyte, megabyte, ...).
> 282 * If false binary units (1024 based) will be used.
> 283 */
> 284 bool kilobyte_si = 0;
and here:
> 393 if (kilobyte_si) {
> 394 size = (size + 512) >> 10;
> 395 } else {
> 396 size = (size + 500) / 1000;
> 397 }
Looks like condition shoud be inverted.
The rest looks fine
(except, maybe, already been there nongettextized "M" and "K"
duplication).
--
Ticket URL: <www.midnight-commander.org/ticket/268#comment:3>
Midnight Commander <www.midnight-commander.org>
Midnight Development Center
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]