From: Charles Kerr Date: Sat, 31 Jul 2010 05:54:46 +0000 (+0000) Subject: (trunk qt) fix minor roundoff error in speed formatter X-Git-Tag: 2.10~198 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ebcdd5fc5818b39c1801094612cc367da9cefeb;p=transmission (trunk qt) fix minor roundoff error in speed formatter --- diff --git a/qt/formatter.cc b/qt/formatter.cc index 35b65a6cf..f8408885c 100644 --- a/qt/formatter.cc +++ b/qt/formatter.cc @@ -78,7 +78,7 @@ Formatter :: initUnits( ) double Speed :: KBps( ) const { - return _Bps / speed_K; + return _Bps / (double)speed_K; } Speed