mirror of
https://github.com/monero-project/monero.git
synced 2025-12-16 08:03:58 -05:00
Fix broken interactive daemon 'limit' commands plus RPC calls
This commit is contained in:
parent
8fdf645397
commit
f9d0827bba
4 changed files with 9 additions and 15 deletions
|
|
@ -380,8 +380,6 @@ bool t_command_parser_executor::set_limit(const std::vector<std::string>& args)
|
|||
std::cout << "failed to parse argument" << std::endl;
|
||||
return false;
|
||||
}
|
||||
if (limit > 0)
|
||||
limit *= 1024;
|
||||
|
||||
return m_executor.set_limit(limit, limit);
|
||||
}
|
||||
|
|
@ -400,8 +398,6 @@ bool t_command_parser_executor::set_limit_up(const std::vector<std::string>& arg
|
|||
std::cout << "failed to parse argument" << std::endl;
|
||||
return false;
|
||||
}
|
||||
if (limit > 0)
|
||||
limit *= 1024;
|
||||
|
||||
return m_executor.set_limit(0, limit);
|
||||
}
|
||||
|
|
@ -420,8 +416,6 @@ bool t_command_parser_executor::set_limit_down(const std::vector<std::string>& a
|
|||
std::cout << "failed to parse argument" << std::endl;
|
||||
return false;
|
||||
}
|
||||
if (limit > 0)
|
||||
limit *= 1024;
|
||||
|
||||
return m_executor.set_limit(limit, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue