"; $rxpc = (100 / $maxrx ) * $rx; $txpc = (100 / $maxtx ) * $tx; if ( $rxpc > 100 ) $rxpc = 100; if ( $txpc > 100 ) $txpc = 100; return(round($rxpc,1).":".round($txpc,1)); } ?>