From: Laslo Hunhold Date: Sat, 19 May 2018 18:09:38 +0000 (+0200) Subject: Increase precision in netspeeds.c X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/68a3902dc533a66c1377409b34904f730ae4a7ef?ds=inline;hp=68a3902dc533a66c1377409b34904f730ae4a7ef Increase precision in netspeeds.c First dividing by interval before multiplying with 1000 decreases the precision by +-(interval - 1) * 1000, as interval arithmetic always applies the Gauß-function to the result. This is not necessary and simply reordering the operations mitigates this. ---