[PATCH 2/2] Allow the user to specify weight units explicitly

Linus Torvalds torvalds at linux-foundation.org
Thu Jan 2 21:07:57 UTC 2014


On Thu, Jan 2, 2014 at 8:58 PM, Linus Torvalds
<torvalds at linux-foundation.org> wrote:
>
> Instead of always assuming that all numbers are in the users locale
> weight units, allow the user to say "kg" or "lbs" explicitly.

Btw, in case it wasn't clear - this same approach should probably be
done for the other things too (pressure in psi or bar). The weight one
is one that has annoyed me personally: it doesn't much matter whether
I'm personally using imperial or metric, if the boat I'm on has
imperial weights, I'd better be able to input it that way too.

Same goes - to a smaller degree - with any other input, but normally
you'd not be affected by it.

Btw, I just noticed a totally unrelated bug when I was looking at
units. The "Equipment" tab shows the tank size in wet size whether
you're imperial or not. So an AL80 shows as "0.39cuft", which is
"true" in the sense that yes, the wet size is 0.39 cuft, but it's
totally insane in the sense that imperial tank sizes are obviously not
wet sizes, they are "amount of gas at STP", and it should obviously
show as AL80.

I don't know when that broke..

                Linus


More information about the subsurface mailing list