diff options
-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") { |