summaryrefslogtreecommitdiff
path: root/rh-bin/listdropboxes.cgi
diff options
context:
space:
mode:
authorPeterTheOne <petertheone@gmail.com>2015-07-31 19:30:00 (GMT)
committerPeterTheOne <petertheone@gmail.com>2015-07-31 19:30:00 (GMT)
commitad9a595d4418eb9a3ad548ef672bb0c069287c46 (patch)
tree3cf8291412c4c709ef0b5f1bb78f00166acf8e54 /rh-bin/listdropboxes.cgi
parent09d092bbae3009f0febf4277c65ba50abd05742f (diff)
parent11de7869f523480957ded5e6c0d012a5e448c500 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'rh-bin/listdropboxes.cgi')
-rwxr-xr-xrh-bin/listdropboxes.cgi5
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") {