]> granicus.if.org Git - transmission/commitdiff
(trunk qt) fix minor roundoff error in speed formatter
authorCharles Kerr <charles@transmissionbt.com>
Sat, 31 Jul 2010 05:54:46 +0000 (05:54 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sat, 31 Jul 2010 05:54:46 +0000 (05:54 +0000)
qt/formatter.cc

index 35b65a6cf151e1118b7699cbb2e4a559fe2d17a6..f8408885c34fda54d3480a1ea852852041e6c85d 100644 (file)
@@ -78,7 +78,7 @@ Formatter :: initUnits( )
 double
 Speed :: KBps( ) const
 {
-    return _Bps / speed_K;
+    return _Bps / (double)speed_K;
 }
 
 Speed