gtorrent/gtorrent-core — pull request #49 by iitalics (2014-07-24 22:07:25+00:00)
Title: Update getFileSizeString()

The "setprecision()" call used to do nothing because we printed integers (converts to doubles now).
Manually expanding multiplication only removes readability, the compiler will do these simple optimizations.
"else if" is exponentially more clean than the old "if"s.
Also fixed (eg "3.100 GB") looks messier than without fixed (eg "3.1 GB")