mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-08-09 23:43:57 +00:00
fix multicall arg
This commit is contained in:
parent
34c2bc57bc
commit
3693adb343
3 changed files with 5 additions and 3 deletions
|
@ -135,7 +135,7 @@ foreach ( @views ) {
|
|||
}
|
||||
|
||||
$function_multicall = rtorrent_version_lower_than('0.9.0')? 'd.multicall' : 'd.multicall2';
|
||||
$function_multicall_arg = rtorrent_version_lower_than($_[0], '0.9.0') ? '' : '<param><value><string></string></value></param>';
|
||||
$function_multicall_arg = rtorrent_version_lower_than('0.9.0') ? '' : '<param><value><string></string></value></param>';
|
||||
$function_hash = rtorrent_version_lower_than('0.9.0')? 'd.get_hash=' : 'd.hash=';
|
||||
$line = "<?xml version=\"1.0\" encoding=\"utf-8\"?><methodCall><methodName>$function_multicall</methodName><params>$function_multicall_arg<param><value><string>${_}</string></value></param><param><value><string>$function_hash</string></value></param></params></methodCall>";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue