From 94676da6a017f5367028c6634396cbe4b5bab152 Mon Sep 17 00:00:00 2001 From: kkalev Date: Wed, 29 Jan 2003 22:42:48 +0000 Subject: [PATCH] Add a few comments in the tot_stats and monthly_tot_stats scripts --- Changelog | 1 + bin/monthly_tot_stats | 5 +++++ bin/tot_stats | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/Changelog b/Changelog index 9b211e5..a89d108 100644 --- a/Changelog +++ b/Changelog @@ -39,6 +39,7 @@ Ver 1.62: respectively. Also add two corresponding scripts in the bin folder, tot_stats and monthly_tot_stats. Lastly, create a new page, user_stats.php3 which will show the top users in connections or connections duration based on the data in the totacct table. +* Add a few comments in the tot_stats and monthly_tot_stats scripts Ver 1.61: * Add a string encoder for greek * If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future diff --git a/bin/monthly_tot_stats b/bin/monthly_tot_stats index 42676a8..22f2ddc 100755 --- a/bin/monthly_tot_stats +++ b/bin/monthly_tot_stats @@ -1,6 +1,11 @@ #!/usr/bin/perl use POSIX; +# Log in the mtotacct table aggregated accounting information for +# each user spaning in one month period. +# If the current month has not ended it will log information up to +# the current month day + $conf=shift||'/usr/local/dialupadmin/conf/admin.conf'; $mysql='/usr/local/mysql/bin/mysql'; diff --git a/bin/tot_stats b/bin/tot_stats index 5fb7dcc..2d60b46 100755 --- a/bin/tot_stats +++ b/bin/tot_stats @@ -1,6 +1,11 @@ #!/usr/bin/perl use POSIX; +# Log in the totacct table aggregated daily accounting information for +# each user. +# We keep a row per user for each day. + + $conf=shift||'/usr/local/dialupadmin/conf/admin.conf'; $mysql='/usr/local/mysql/bin/mysql'; -- 2.39.5