From: eldy <>
Date: Sun, 8 Jul 2001 13:28:18 +0000 (+0000)
Subject: Change lib for TOP reports to have TOP number not higher than number of real record
X-Git-Tag: AWSTATS_1_0~238
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=110e465f365e6cc183a4dd4e36c37aec90fd976d;p=thirdparty%2FAWStats.git
Change lib for TOP reports to have TOP number not higher than number of real record
---
diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl
index 735ab3d8..0dc2ca74 100644
--- a/wwwroot/cgi-bin/awstats.pl
+++ b/wwwroot/cgi-bin/awstats.pl
@@ -81,7 +81,7 @@ $word, $yearcon, $yearfile, $yearmonthfile, $yeartoprocess) = ();
%MonthBytes = %MonthHits = %MonthPages = %MonthUnique = %MonthVisits =
%listofyears = %monthlib = %monthnum = ();
-$VERSION="2.5 (build 35)";
+$VERSION="2.5 (build 36)";
$Lang=0;
# Default value
@@ -1378,7 +1378,7 @@ sub Format_Bytes {
if ($bytes >= $fudge * exp(3*log(1024))) { return sprintf("%.2f", $bytes/exp(3*log(1024)))." Gb"; }
if ($bytes >= $fudge * exp(2*log(1024))) { return sprintf("%.2f", $bytes/exp(2*log(1024)))." Mb"; }
if ($bytes >= $fudge * exp(1*log(1024))) { return sprintf("%.2f", $bytes/exp(1*log(1024)))." $message[44]"; }
- return "$bytes Bytes";
+ return "$bytes $message[75]";
}
@@ -2602,6 +2602,7 @@ if ($rest_p > 0) { # All other domains (known or not)
# BY HOST/VISITOR
#--------------------------
print "$CENTER
";
+$MaxNbOfHostsShown = $TotalHosts if $MaxNbOfHostsShown > $TotalHosts;
$tab_titre="TOP $MaxNbOfHostsShown $message[55] $TotalHosts $message[26] ($TotalUnique $message[11])";
&tab_head;
print "