From 41a059c999339cefd2c1077be9fce4106f3a7869 Mon Sep 17 00:00:00 2001 From: pyroscope Date: Sat, 13 Aug 2016 14:45:00 +0200 Subject: [PATCH] scale integer values with given unit, not only converted strings (closes #484) --- src/rpc/command.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/command.cc b/src/rpc/command.cc index 1057071c..6d6233c8 100644 --- a/src/rpc/command.cc +++ b/src/rpc/command.cc @@ -77,7 +77,7 @@ command_base_call_value_base(command_base* rawCommand, target_type target, const return command_base::_call::type, T>(rawCommand, target, val); } - return command_base::_call::type, T>(rawCommand, target, arg.as_value()); + return command_base::_call::type, T>(rawCommand, target, unit * arg.as_value()); } template const torrent::Object