Statistical accounting data

Filtering options
> Limit to sessions starting from (hint): >
> Limit to sessions starting until (hint): >
Apply this filter:

Note well: this page displays only data about terminated sessions.

= '".pg_escape_string($START_TIME)."'"; } if ($END_TIME) { if ($sql_cond) $sql_cond .= " AND "; $sql_cond .= "sess_start =< '".pg_escape_string($END_TIME)."'"; } /* Function to format download size (from php.net) */ function human_readable( $size ) { $count = 0; $format = array("B","KB","MB","GB","TB","PB","EB","ZB","YB"); while(($size/1024)>1 && $count<8) { $size=$size/1024; $count++; } if( $size >= 100 ) $decimals = 0; elseif ($size >= 10 ) $decimals = 1; else $decimals = 2; $return = number_format($size,$decimals,'.',' ')." ".$format[$count]; return $return; } ?>
No data is available in the selected period.

\n"; die("\n"); } $data = pg_fetch_array($result, null, PGSQL_ASSOC); ?> \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
Total accounted data
First session started:".$data["first_sess"]."
Last session started:".$data["last_sess"]."
Total data downloaded:".human_readable($data["total_down"])."
Total data uploaded:".human_readable($data["total_up"])."
Number of users who connected at least once:".$data["nb_users"]."
Number of access points involved:".$data["nb_ap"]."
\n"; pg_free_result($result); ?>
\n"; echo " \n"; echo " \n"; echo " \n"; } pg_free_result($result); ?>
Top-5 downloading users
".htmlentities(pg_unescape_bytea($data["user_name"]))."".human_readable($data["total_down"])."

\n"; echo " \n"; echo " \n"; echo " \n"; } pg_free_result($result); ?>
Top-5 uploading users
".htmlentities(pg_unescape_bytea($data["user_name"]))."".human_readable($data["total_up"])."

\n"; echo " \n"; echo " \n"; echo " \n"; } pg_free_result($result); ?>
Top-8 access devices (by number of users)
".htmlentities(pg_unescape_bytea($data["nas_info"]))."".$data["unc"]."

\n"; echo " \n"; echo " \n"; echo " \n"; } pg_free_result($result); ?>
Top-8 access devices (by traffic: up+down)
".htmlentities(pg_unescape_bytea($data["nas_info"]))."".human_readable($data["traffic"])."

Data generated by scripts from the freeDiameter project.