]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fix reference tank information for LP steel tanks.
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 1 Apr 2012 22:38:52 +0000 (15:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 1 Apr 2012 22:38:52 +0000 (15:38 -0700)
Commit f9bb3f79106b ("Clean up reference tank information table") had
cleaned up the tank info list so that you could sanely do tanks in
liters and with a working pressure in bar.

But the LP steel cylinders had somehow missed out on the ".psi =" part
of the equation, and as a result, what was supposed to be their working
pressure instead ended up being interpreted as their size in
milli-liters.

Oops.

Fix that, and also make the standard tank info filling code actually
verify the sanity of the reference tank table, so that if this happens
again, it will complain loudly instead of using nonsensical values.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found