scale integer values with given unit, not only converted strings (closes #484)

This commit is contained in:
pyroscope
2016-08-13 14:45:00 +02:00
parent e1fa392ecb
commit 41a059c999
+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