diff options
author | PeterTheOne <petertheone@gmail.com> | 2015-07-31 19:30:00 (GMT) |
---|---|---|
committer | PeterTheOne <petertheone@gmail.com> | 2015-07-31 19:30:00 (GMT) |
commit | ad9a595d4418eb9a3ad548ef672bb0c069287c46 (patch) | |
tree | 3cf8291412c4c709ef0b5f1bb78f00166acf8e54 /rh-bin/listdropboxes.cgi | |
parent | 09d092bbae3009f0febf4277c65ba50abd05742f (diff) | |
parent | 11de7869f523480957ded5e6c0d012a5e448c500 (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'rh-bin/listdropboxes.cgi')
-rwxr-xr-x | rh-bin/listdropboxes.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rh-bin/listdropboxes.cgi b/rh-bin/listdropboxes.cgi index b30ff50..f96c4fa 100755 --- a/rh-bin/listdropboxes.cgi +++ b/rh-bin/listdropboxes.cgi @@ -22,6 +22,7 @@ use strict; use CGI; +use POSIX; use XML::Quote; use RHRD::rddb; @@ -70,8 +71,8 @@ if($responsecode != 200) { print " <group-description>" . xml_quote($href->{'GROUPDESC'}) . "</group-description>\n"; print " <group-low-cart>" . xml_quote($href->{'GROUPLOWCART'}) . "</group-low-cart>\n"; print " <group-high-cart>" . xml_quote($href->{'GROUPHIGHCART'}) . "</group-high-cart>\n"; - print " <normalization-level>" . xml_quote($href->{'NORMLEVEL'}) . "</normalization-level>\n"; - print " <autotrim-level>" . xml_quote($href->{'TRIMLEVEL'}) . "</autotrim-level>\n"; + print " <normalization-level>" . floor($href->{'NORMLEVEL'}/100) . "</normalization-level>\n"; + print " <autotrim-level>" . floor($href->{'TRIMLEVEL'}/100) . "</autotrim-level>\n"; print " <parameters>" . xml_quote($href->{'PARAM'}) . "</parameters>\n"; print " <type>" . xml_quote($href->{'TYPE'}) . "</type>\n"; if($href->{'TYPE'} eq "show") { |