mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-22 00:56:18 +00:00
scale integer values with given unit, not only converted strings (closes #484)
This commit is contained in:
+1
-1
@@ -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, 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
|
template <typename T> const torrent::Object
|
||||||
|
|||||||
Reference in New Issue
Block a user