simplify human_readable
authorPhil Sutter <phil@nwl.cc>
Tue, 16 Dec 2008 02:18:35 +0000 (03:18 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 16 Dec 2008 02:21:30 +0000 (03:21 +0100)
commitd321573c2d2affac9e3cc22fc2f883e50b6a66d7
tree0b2cab80e37fdc87be7896edf6f9f4f13e8c629a
parentd744f9bfbb192067187d928eeec0d61f7a78e528
simplify human_readable

The only change of behaviour occurs when adjusting the unit of positive
values. For some reason 1000LL was used, which has now been replaced by
1024LL. Usage of abs() and MAX() might be OS dependent, but it should
not be too hard to implement them by hand if they're missing somewhere.
src/conky.c