[Web UI] Fix max_ratio precision. Closes #4707

This commit is contained in:
ngosang 2016-01-30 00:56:40 +01:00
parent 193913129f
commit 87dc9a4a18
3 changed files with 4 additions and 4 deletions

View file

@ -347,7 +347,7 @@ void prefjson::setPreferences(const QString& json)
pref->setIgnoreSlowTorrentsForQueueing(m["dont_count_slow_torrents"].toBool());
// Share Ratio Limiting
if (m.contains("max_ratio_enabled"))
pref->setGlobalMaxRatio(m["max_ratio"].toInt());
pref->setGlobalMaxRatio(m["max_ratio"].toReal());
else
pref->setGlobalMaxRatio(-1);
if (m.contains("max_ratio_act"))