Merge pull request #485 from pyroscope/fix-set_kb

scale integer values with given unit, not only converted strings (closes #484)
This commit is contained in:
Jari Sundell
2016-08-18 08:36:24 +09:00
committed by GitHub
+1 -1
View File
@@ -77,7 +77,7 @@ command_base_call_value_base(command_base* rawCommand, target_type target, const
return command_base::_call<typename command_value_function<T>::type, T>(rawCommand, target, val);
}
return command_base::_call<typename command_value_function<T>::type, T>(rawCommand, target, arg.as_value());
return command_base::_call<typename command_value_function<T>::type, T>(rawCommand, target, unit * arg.as_value());
}
template <typename T> const torrent::Object