$Lang::tr{'trafficdate'} | $Lang::tr{'trafficin'} | $Lang::tr{'trafficout'} | END if ($netsettings{'CONFIG_TYPE'} =~ /^(3|4)$/) { print "$Lang::tr{'trafficin'} | "; print "$Lang::tr{'trafficout'} | "; } if ($netsettings{'CONFIG_TYPE'} =~ /^(2|4)$/) { print "$Lang::tr{'trafficin'} | "; print "$Lang::tr{'trafficout'} | "; } if ($netsettings{'CONFIG_TYPE'} =~ /^(1|2|3|4)$/) { print "$Lang::tr{'trafficin'} | "; print "$Lang::tr{'trafficout'} | "; } print "
%s | \n", $allDaysBytes{$_}{'Day'}; printf "%.3f | \n", ($allDaysBytes{$_}{${Traffic::green_in}}/1048576); printf "%.3f | \n", ($allDaysBytes{$_}{${Traffic::green_out}}/1048576); if ($netsettings{'CONFIG_TYPE'} =~ /^(3|4)$/) { printf "%.3f | \n", ($allDaysBytes{$_}{${Traffic::blue_in}}/1048576); printf "%.3f | \n", ($allDaysBytes{$_}{${Traffic::blue_out}}/1048576); } if ($netsettings{'CONFIG_TYPE'} =~ /^(2|4)$/) { printf "%.3f | \n", ($allDaysBytes{$_}{${Traffic::orange_in}}/1048576); printf "%.3f | \n", ($allDaysBytes{$_}{${Traffic::orange_out}}/1048576); } if ($netsettings{'CONFIG_TYPE'} =~ /^(1|2|3|4)$/) { printf "%.3f | \n", ($allDaysBytes{$_}{${Traffic::red_in}}/1048576); printf "%.3f |
$total_green_in MB | $total_green_out MB | END if ($netsettings{'CONFIG_TYPE'} =~ /^(3|4)$/) { print "$total_blue_in MB | "; print "$total_blue_out MB | "; } if ($netsettings{'CONFIG_TYPE'} =~ /^(2|4)$/) { print "$total_orange_in MB | "; print "$total_orange_out MB | "; } if ($netsettings{'CONFIG_TYPE'} =~ /^(1|2|3|4)$/) { print "$total_red_in MB | "; print "$total_red_out MB | "; } print "