diff --git a/README.md b/README.md index 0686085..8dcb454 100644 --- a/README.md +++ b/README.md @@ -264,7 +264,7 @@ Installation `rrd-extractstats.pl /path/to/rrd/dir /path/to/knownlinks /path/to/asstats_day.txt` That script will go through all RRD files and collect per-link summary - stats for each AS, sort them by total traffic (descending), and write them + stats for each AS in the last 24 hours, sort them by total traffic (descending), and write them to a text file. The "top N AS" page uses this to determine which ASes to show. diff --git a/www/config.inc b/www/config.inc index 76d4134..abf9734 100644 --- a/www/config.inc +++ b/www/config.inc @@ -42,14 +42,12 @@ $customlinks = array( $top_intervals[] = array( 'hours' => 7*24, 'statsfile' => '/data/as-stats/asstats_week.txt', - 'label' => '1 week', - //'statslabel' => '1 week' // overrides display of "... in the last ..." - use if 'hours' parameter does not correspond with statsfile interval + 'label' => '1 week' ); $top_intervals[] = array( 'hours' => 30*24, 'statsfile' => '/data/as-stats/asstats_month.txt', - 'label' => '30 days', - //'statslabel' => '30 days' // overrides display of "... in the last ..." - use if 'hours' parameter does not correspond with statsfile interval + 'label' => '30 days' ); */ diff --git a/www/config_defaults.inc b/www/config_defaults.inc index dce9e43..26c6919 100644 --- a/www/config_defaults.inc +++ b/www/config_defaults.inc @@ -27,17 +27,6 @@ $showpeeras = false; $top_intervals = array( array( 'hours' => 24, - 'label' => '24 hours', - 'statslabel' => '24 hours' - ), - array( - 'hours' => 4, - 'label' => '4 hours', - 'statslabel' => '24 hours' - ), - array( - 'hours' => 12, - 'label' => '12 hours', - 'statslabel' => '24 hours' + 'label' => '24 hours' ) ); diff --git a/www/history.php b/www/history.php index 324a20f..10a61ec 100644 --- a/www/history.php +++ b/www/history.php @@ -54,13 +54,6 @@
No data found for AS
-