diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-07-31 11:15:23 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-07-31 11:15:23 (GMT) |
commit | 11de7869f523480957ded5e6c0d012a5e448c500 (patch) | |
tree | d0cb624b2548003f0c8b0c91b2ee932294dde355 /rh-bin | |
parent | 2aedff65649b4601d5998696fac2ccf33ff1ba9b (diff) |
fixed normalization and autotrim level
Diffstat (limited to 'rh-bin')
-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") { |