]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Add autoscale units for downloaded bytes
authoreldy <>
Sun, 8 Jul 2001 13:12:27 +0000 (13:12 +0000)
committereldy <>
Sun, 8 Jul 2001 13:12:27 +0000 (13:12 +0000)
16 files changed:
wwwroot/cgi-bin/awstats.pl
wwwroot/cgi-bin/lang/awstats-cz.txt
wwwroot/cgi-bin/lang/awstats-de.txt
wwwroot/cgi-bin/lang/awstats-dk.txt
wwwroot/cgi-bin/lang/awstats-en.txt
wwwroot/cgi-bin/lang/awstats-es.txt
wwwroot/cgi-bin/lang/awstats-fr.txt
wwwroot/cgi-bin/lang/awstats-gr.txt
wwwroot/cgi-bin/lang/awstats-it.txt
wwwroot/cgi-bin/lang/awstats-kr.txt
wwwroot/cgi-bin/lang/awstats-nl.txt
wwwroot/cgi-bin/lang/awstats-pl.txt
wwwroot/cgi-bin/lang/awstats-pt.txt
wwwroot/cgi-bin/lang/awstats-tt-en.txt
wwwroot/cgi-bin/lang/awstats-tt-fr.txt
wwwroot/cgi-bin/lang/awstats-ua.txt

index 160ed94b08f333de7c44ebbc064c61864102dbb5..735ab3d8613bfe75a7d2ab068d1f75a3d35ab360 100644 (file)
@@ -11,7 +11,7 @@
 # See README.TXT file for setup and benchmark informations.
 # See COPYING.TXT file about AWStats GNU General Public License.
 #-------------------------------------------------------
-# Algorithm SUMMARY
+# ALGORITHM SUMMARY
 # Read config file
 # If 'update'
 #   Get last history file name
@@ -40,7 +40,7 @@
 # Defines
 #-------------------------------------------------------
 
-# ---------- Init variables --------
+# ---------- Init variables (Variable $TmpHashxxx are not initialized) --------
 ($ArchiveFileName, $ArchiveLogRecords, $BarHeight, $BarWidth,
 $DIR, $DNSLookup, $DefaultFile, $DirCgi, $DirData,
 $DirIcons, $Extension, $FileConfig, $FileSuffix, $FirstTime,
@@ -60,9 +60,9 @@ $bredde_v, $color_Background, $color_TableBG, $color_TableBGRowTitle,
 $color_TableBGTitle, $color_TableBorder, $color_TableRowTitle,
 $color_TableTitle, $color_h, $color_k, $color_link, $color_p, $color_s, $color_v,
 $color_w, $count, $date, $daycon, $endmonth, $found, $foundrobot,
-$h, $hourcon, $hr, $internal_link, $ix, $keep, $key, $kilo, $lien, $line,
+$h, $hourcon, $hr, $internal_link, $ix, $keep, $key, $lien, $line,
 $max, $max_h, $max_k, $max_p, $max_v, $mincon, $monthcon, $monthfile, $monthix,
-$monthtoprocess, $nameicon, $new, $nompage, $p, $page, $param,
+$monthtoprocess, $nameicon, $new, $nompage, $p, $param,
 $paramtoexclude, $rest, $rest_h, $rest_k, $rest_p,
 $tab_titre, $total_h, $total_k, $total_p,
 $word, $yearcon, $yearfile, $yearmonthfile, $yeartoprocess) = ();
@@ -81,7 +81,7 @@ $word, $yearcon, $yearfile, $yearmonthfile, $yeartoprocess) = ();
 %MonthBytes = %MonthHits = %MonthPages = %MonthUnique = %MonthVisits =
 %listofyears = %monthlib = %monthnum = ();
 
-$VERSION="2.5 (build 34)";
+$VERSION="2.5 (build 35)";
 $Lang=0;
 
 # Default value
@@ -705,6 +705,7 @@ DIV { font: 12px arial,verdana,helvetica; text-align:justify; }
 ";
        print "</head>\n\n";
        print "<body>\n";
+       &Init_HashArray;        # Should be useless (to avoid problem with mod_perl that keep variables in memory).
 }
 
 
@@ -1076,7 +1077,8 @@ sub Check_Config {
        if ($message[72] eq "") { $message[72]="Navigation"; }
        if ($message[73] eq "") { $message[73]="Day statistics"; }
        if ($message[74] eq "") { $message[74]="Update now"; }
-       if ($message[75] eq "") { $message[75]="Last update"; }
+       if ($message[75] eq "") { $message[75]="Bytes"; }
+       if ($message[76] eq "") { $message[76]="Last update"; }
 }
 
 #--------------------------------------------------------------------
@@ -1224,7 +1226,8 @@ sub Read_History_File {
 }
 
 #--------------------------------------------------------------------
-# Input: year,month
+# Function:    Show flags for 5 major languages
+# Input:       Year, Month
 #--------------------------------------------------------------------
 sub Save_History_File {
        &debug("Call to Save_History_File [$_[0],$_[1]]");
@@ -1238,20 +1241,18 @@ sub Save_History_File {
 
        print HISTORYTMP "BEGIN_DOMAIN\n";
        foreach $key (keys %_domener_h) {
-               $page=$_domener_p{$key};$kilo=$_domener_k{$key};
-               if ($page == "") {$page=0;}
-               if ($kilo == "") {$kilo=0;}
-               print HISTORYTMP "$key $page $_domener_h{$key} $kilo\n"; next;
-               }
+               my $page=$_domener_p{$key}; if ($page == "") {$page=0;}
+               my $bytes=$_domener_k{$key}; if ($bytes == "") {$bytes=0;}
+               print HISTORYTMP "$key $page $_domener_h{$key} $bytes\n"; next;
+       }
        print HISTORYTMP "END_DOMAIN\n";
 
        print HISTORYTMP "BEGIN_VISITOR\n";
        foreach $key (keys %_hostmachine_h) {
-               $page=$_hostmachine_p{$key};$kilo=$_hostmachine_k{$key};
-               if ($page == "") {$page=0;}
-               if ($kilo == "") {$kilo=0;}
-               print HISTORYTMP "$key $page $_hostmachine_h{$key} $kilo $_hostmachine_l{$key}\n"; next;
-               }
+               my $page=$_hostmachine_p{$key}; if ($page == "") {$page=0;}
+               my $bytes=$_hostmachine_k{$key}; if ($bytes == "") {$bytes=0;}
+               print HISTORYTMP "$key $page $_hostmachine_h{$key} $bytes $_hostmachine_l{$key}\n"; next;
+       }
        print HISTORYTMP "END_VISITOR\n";
 
        print HISTORYTMP "BEGIN_UNKNOWNIP\n";
@@ -1367,6 +1368,18 @@ sub Show_Flag_Links {
        }
 }
 
+#------------------------------------------------------------------------------
+# Function:      Format value in bytes in a string (Bytes, Kb, Mb, Gb)
+# Input:         bytes
+#------------------------------------------------------------------------------
+sub Format_Bytes {
+       my $bytes = $_[0];
+       my $fudge = 1;
+       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";
+}
 
 
 #-------------------------------------------------------
@@ -2353,7 +2366,7 @@ print "$CENTER<a name=\"MENU\"></a><BR>";
 
 print "<table>";
 print "<tr><td class=LEFT><font style=\"font: 14px arial,verdana,helvetica; font-weight: bold\">$message[7]: </td><td class=LEFT><font style=\"font: 14px arial,verdana,helvetica; font-weight: normal\">$SiteToAnalyze</td></tr>";
-print "<tr><td class=LEFT><font style=\"font: 14px arial,verdana,helvetica; font-weight: bold\">$message[75]: </td><td class=LEFT><font style=\"font: 14px arial,verdana,helvetica; font-weight: normal\">";
+print "<tr><td class=LEFT><font style=\"font: 14px arial,verdana,helvetica; font-weight: bold\">$message[76]: </td><td class=LEFT><font style=\"font: 14px arial,verdana,helvetica; font-weight: normal\">";
 foreach $key (keys %LastUpdate) { if ($LastUpdate < $LastUpdate{$key}) { $choosedkey=$key; $LastUpdate = $LastUpdate{$key}; } }
 $yearcon=substr($LastUpdate,0,4);$monthcon=substr($LastUpdate,4,2);$daycon=substr($LastUpdate,6,2);$hourcon=substr($LastUpdate,8,2);$mincon=substr($LastUpdate,10,2);
 if ($LastUpdate != 0) { print "$daycon&nbsp;$monthlib{$monthcon}&nbsp;$yearcon&nbsp;-&nbsp;$hourcon:$mincon &nbsp;"; }
@@ -2438,10 +2451,9 @@ print "<TD width=20% bgcolor=#$color_v onmouseover=\"ShowTooltip(1);\" onmouseou
 print "<TD width=20% bgcolor=#$color_w onmouseover=\"ShowTooltip(2);\" onmouseout=\"HideTooltip(2);\">$message[11]</TD>";
 print "<TD width=20% bgcolor=#$color_p onmouseover=\"ShowTooltip(3);\" onmouseout=\"HideTooltip(3);\">$message[56]</TD>";
 print "<TD width=20% bgcolor=#$color_h onmouseover=\"ShowTooltip(4);\" onmouseout=\"HideTooltip(4);\">$message[57]</TD>";
-print "<TD width=20% bgcolor=#$color_k onmouseover=\"ShowTooltip(5);\" onmouseout=\"HideTooltip(5);\">$message[44]</TD></TR>";
-$kilo=int($TotalBytes/1024*100)/100;
-print "<TR><TD><b>$TotalVisits</b><br>&nbsp;</TD><TD><b>$TotalUnique</b><br>($RatioHosts&nbsp;$message[52])</TD><TD><b>$TotalPages</b><br>($RatioPages&nbsp;".lc $message[56]."/".lc $message[12].")</TD>";
-print "<TD><b>$TotalHits</b><br>($RatioHits&nbsp;".lc $message[57]."/".lc $message[12].")</TD><TD><b>$kilo $message[44]</b><br>($RatioBytes&nbsp;$message[44]/".lc $message[12].")</TD></TR>\n";
+print "<TD width=20% bgcolor=#$color_k onmouseover=\"ShowTooltip(5);\" onmouseout=\"HideTooltip(5);\">$message[75]</TD></TR>";
+print "<TR><TD><b>$TotalVisits</b><br>&nbsp;</TD><TD><b>$TotalUnique</b><br>($RatioHosts&nbsp;$message[52])</TD><TD><b>$TotalPages</b><br>($RatioPages&nbsp;".lc($message[56]."/".$message[12]).")</TD>";
+print "<TD><b>$TotalHits</b><br>($RatioHits&nbsp;".lc($message[57]."/".$message[12]).")</TD><TD><b>".Format_Bytes($TotalBytes)."</b><br>($RatioBytes&nbsp;$message[44]/".lc($message[12]).")</TD></TR>\n";
 print "<TR valign=bottom><TD colspan=5 align=center><center>";
 # Show monthly stats
 print "<TABLE>";
@@ -2463,14 +2475,13 @@ for ($ix=1; $ix<=12; $ix++) {
        if ($max_h > 0) { $bredde_p=$MonthPages{$YearRequired.$monthix}/$max_h*$BarHeight/2; }
        if ($max_h > 0) { $bredde_h=$MonthHits{$YearRequired.$monthix}/$max_h*$BarHeight/2; }
        if ($max_k > 0) { $bredde_k=$MonthBytes{$YearRequired.$monthix}/$max_k*$BarHeight/2; }
-       $kilo=int(($MonthBytes{$YearRequired.$monthix}/1024)*100)/100;
        print "<TD>";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_v\" HEIGHT=$bredde_v WIDTH=8 ALT=\"$message[10]: $MonthVisits{$YearRequired.$monthix}\" title=\"$message[10]: $MonthVisits{$YearRequired.$monthix}\">";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_u\" HEIGHT=$bredde_u WIDTH=8 ALT=\"$message[11]: $MonthUnique{$YearRequired.$monthix}\" title=\"$message[11]: $MonthUnique{$YearRequired.$monthix}\">";
        print "&nbsp;";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_p\" HEIGHT=$bredde_p WIDTH=8 ALT=\"$message[56]: $MonthPages{$YearRequired.$monthix}\" title=\"$message[56]: $MonthPages{$YearRequired.$monthix}\">";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_h\" HEIGHT=$bredde_h WIDTH=8 ALT=\"$message[57]: $MonthHits{$YearRequired.$monthix}\" title=\"$message[57]: $MonthHits{$YearRequired.$monthix}\">";
-       print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_k\" HEIGHT=$bredde_k WIDTH=8 ALT=\"$message[44]: $kilo\" title=\"$message[44]: $kilo\">";
+       print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_k\" HEIGHT=$bredde_k WIDTH=8 ALT=\"$message[75]: ".Format_Bytes($MonthBytes{$YearRequired.$monthix})."\" title=\"$message[75]: ".Format_Bytes($MonthBytes{$YearRequired.$monthix})."\">";
        print "</TD>\n";
 }
 print "</TR><TR>";
@@ -2514,11 +2525,10 @@ for ($ix=$MaxNbOfDays-1; $ix>=0; $ix--) {
        if ($max_h > 0) { $bredde_p=$DayPages{$oldyear.$oldmonth.$oldday}/$max_h*$BarHeight/2; }
        if ($max_h > 0) { $bredde_h=$DayHits{$oldyear.$oldmonth.$oldday}/$max_h*$BarHeight/2; }
        if ($max_k > 0) { $bredde_k=$DayBytes{$oldyear.$oldmonth.$oldday}/$max_k*$BarHeight/2; }
-       $kilo=int(($DayBytes{$oldyear.$oldmonth.$oldday}/1024)*100)/100;
        print "<TD>";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_p\" HEIGHT=$bredde_p WIDTH=8 ALT=\"$message[56]: $DayPages{$oldyear.$oldmonth.$oldday}\" title=\"$message[56]: $DayPages{$oldyear.$oldmonth.$oldday}\">";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_h\" HEIGHT=$bredde_h WIDTH=8 ALT=\"$message[57]: $DayHits{$oldyear.$oldmonth.$oldday}\" title=\"$message[57]: $DayHits{$oldyear.$oldmonth.$oldday}\">";
-       print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_k\" HEIGHT=$bredde_k WIDTH=8 ALT=\"$message[44]: $kilo\" title=\"$message[44]: $kilo\">";
+       print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_k\" HEIGHT=$bredde_k WIDTH=8 ALT=\"$message[75]: ".Format_Bytes($DayBytes{$oldyear.$oldmonth.$oldday})."\" title=\"$message[75]: ".Format_Bytes($DayBytes{$oldyear.$oldmonth.$oldday})."\">";
        print "</TD>\n";
 }
 print "</TR><TR>";
@@ -2536,12 +2546,13 @@ print "</center></TD></TR>";
 
 print "<br><hr>\n";
 
+
 # BY COUNTRY/DOMAIN
 #---------------------------
 print "$CENTER<a name=\"DOMAINS\"></a><BR>";
 $tab_titre="$message[25]";
 &tab_head;
-print "<TR bgcolor=#$color_TableBGRowTitle><TH colspan=2>$message[17]</TH><TH>Code</TH><TH bgcolor=#$color_p>$message[56]</TH><TH bgcolor=#$color_h>$message[57]</TH><TH bgcolor=#$color_k>$message[44]</TH><TH>&nbsp;</TH></TR>\n";
+print "<TR bgcolor=#$color_TableBGRowTitle><TH colspan=2>$message[17]</TH><TH>Code</TH><TH bgcolor=#$color_p>$message[56]</TH><TH bgcolor=#$color_h>$message[57]</TH><TH bgcolor=#$color_k>$message[75]</TH><TH>&nbsp;</TH></TR>\n";
 if ($SortDir<0) { $max_h=$_domener_h{$sortdomains_h[0]}; }
 else            { $max_h=$_domener_h{$sortdomains_h[$#sortdomains_h]}; }
 if ($SortDir<0) { $max_k=$_domener_k{$sortdomains_k[0]}; }
@@ -2552,18 +2563,17 @@ foreach $key (@sortdomains_p) {
        if ($max_h > 0) { $bredde_p=$BarWidth*$_domener_p{$key}/$max_h+1; }     # use max_h to enable to compare pages with hits
        if ($max_h > 0) { $bredde_h=$BarWidth*$_domener_h{$key}/$max_h+1; }
        if ($max_k > 0) { $bredde_k=$BarWidth*$_domener_k{$key}/$max_k+1; }
-       $kilo=int(($_domener_k{$key}/1024)*100)/100;
        if ($key eq "ip") {
                print "<TR><TD><IMG SRC=\"$DirIcons\/flags\/$key.png\" height=14></TD><TD CLASS=LEFT>$message[0]</TD><TD>$key</TD>";
        }
        else {
                print "<TR><TD><IMG SRC=\"$DirIcons\/flags\/$key.png\" height=14></TD><TD CLASS=LEFT>$DomainsHash{$key}</TD><TD>$key</TD>";
        }
-       print "<TD>$_domener_p{$key}</TD><TD>$_domener_h{$key}</TD><TD>$kilo</TD>";
+       print "<TD>$_domener_p{$key}</TD><TD>$_domener_h{$key}</TD><TD>".Format_Bytes($_domener_k{$key})."</TD>";
        print "<TD CLASS=LEFT>";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_p\" WIDTH=$bredde_p HEIGHT=6 ALT=\"$message[56]: $_domener_p{$key}\" title=\"$message[56]: $_domener_p{$key}\"><br>\n";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_h\" WIDTH=$bredde_h HEIGHT=6 ALT=\"$message[57]: $_domener_h{$key}\" title=\"$message[57]: $_domener_h{$key}\"><br>\n";
-       print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_k\" WIDTH=$bredde_k HEIGHT=6 ALT=\"$message[44]: $kilo\" title=\"$message[44]: $kilo\">";
+       print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_k\" WIDTH=$bredde_k HEIGHT=6 ALT=\"$message[75]: ".Format_Bytes($_domener_k{$key})."\" title=\"$message[75]: ".Format_Bytes($_domener_k{$key})."\">";
        print "</TD></TR>\n";
        $total_p += $_domener_p{$key};
        $total_h += $_domener_h{$key};
@@ -2579,12 +2589,11 @@ if ($rest_p > 0) {      # All other domains (known or not)
        if ($max_h > 0) { $bredde_p=$BarWidth*$rest_p/$max_h+1; }       # use max_h to enable to compare pages with hits
        if ($max_h > 0) { $bredde_h=$BarWidth*$rest_h/$max_h+1; }
        if ($max_k > 0) { $bredde_k=$BarWidth*$rest_k/$max_k+1; }
-       $kilo=int(($rest_k/1024)*100)/100;
-       print "<TR><TD colspan=3 CLASS=LEFT><font color=blue>$message[2]</font></TD><TD>$rest_p</TD><TD>$rest_h</TD><TD>$kilo</TD>\n";
+       print "<TR><TD colspan=3 CLASS=LEFT><font color=blue>$message[2]</font></TD><TD>$rest_p</TD><TD>$rest_h</TD><TD>".Format_Bytes($rest_k)."</TD>\n";
        print "<TD CLASS=LEFT>";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_p\" WIDTH=$bredde_p HEIGHT=6 ALT=\"$message[56]: $rest_p\" title=\"$message[56]: $rest_p\"><br>\n";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_h\" WIDTH=$bredde_h HEIGHT=6 ALT=\"$message[57]: $rest_h\" title=\"$message[57]: $rest_h\"><br>\n";
-       print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_k\" WIDTH=$bredde_k HEIGHT=6 ALT=\"$message[44]: $kilo\" title=\"$message[44]: $kilo\">";
+       print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_k\" WIDTH=$bredde_k HEIGHT=6 ALT=\"$message[75]: ".Format_Bytes($rest_k)."\" title=\"$message[75]: ".Format_Bytes($rest_k)."\">";
        print "</TD></TR>\n";
 }
 &tab_end;
@@ -2595,13 +2604,12 @@ if ($rest_p > 0) {      # All other domains (known or not)
 print "$CENTER<a name=\"VISITOR\"></a><BR>";
 $tab_titre="TOP $MaxNbOfHostsShown $message[55] $TotalHosts $message[26] ($TotalUnique $message[11])";
 &tab_head;
-print "<TR bgcolor=#$color_TableBGRowTitle><TH>$message[18]</TH><TH bgcolor=#$color_p>$message[56]</TH><TH bgcolor=#$color_h>$message[57]</TH><TH bgcolor=#$color_k>$message[44]</TH><TH>$message[9]</TH></TR>\n";
+print "<TR bgcolor=#$color_TableBGRowTitle><TH>$message[18]</TH><TH bgcolor=#$color_p>$message[56]</TH><TH bgcolor=#$color_h>$message[57]</TH><TH bgcolor=#$color_k>$message[75]</TH><TH>$message[9]</TH></TR>\n";
 $count=0;$total_p=0;$total_h=0;$total_k=0;
 foreach $key (@sorthosts_p) {
        if ($_hostmachine_h{$key}>=$MinHitHost) {
-               $kilo=int(($_hostmachine_k{$key}/1024)*100)/100;
                if ($key eq "Unknown") {
-                       print "<TR><TD CLASS=LEFT><a href=\"$DirCgi$PROG.$Extension?action=unknownip&site=$SiteToAnalyze&year=$YearRequired&month=$MonthRequired&lang=$Lang\">$message[1]</a></TD><TD>$_hostmachine_p{$key}</TD><TD>$_hostmachine_h{$key}</TD><TD>$kilo</TD><TD><a href=\"$DirCgi$PROG.$Extension?action=unknownip&site=$SiteToAnalyze&year=$YearRequired&month=$MonthRequired&lang=$Lang\">$message[3]</a></TD></TR>\n";
+                       print "<TR><TD CLASS=LEFT><a href=\"$DirCgi$PROG.$Extension?action=unknownip&site=$SiteToAnalyze&year=$YearRequired&month=$MonthRequired&lang=$Lang\">$message[1]</a></TD><TD>$_hostmachine_p{$key}</TD><TD>$_hostmachine_h{$key}</TD><TD>".Format_Bytes($_hostmachine_k{$key})."</TD><TD><a href=\"$DirCgi$PROG.$Extension?action=unknownip&site=$SiteToAnalyze&year=$YearRequired&month=$MonthRequired&lang=$Lang\">$message[3]</a></TD></TR>\n";
                        }
                else {
                        $yearcon=substr($_hostmachine_l{$key},0,4);
@@ -2609,7 +2617,7 @@ foreach $key (@sorthosts_p) {
                        $daycon=substr($_hostmachine_l{$key},6,2);
                        $hourcon=substr($_hostmachine_l{$key},8,2);
                        $mincon=substr($_hostmachine_l{$key},10,2);
-                       print "<tr><td CLASS=LEFT>$key</td><TD>$_hostmachine_p{$key}</TD><TD>$_hostmachine_h{$key}</TD><TD>$kilo</TD>";
+                       print "<tr><td CLASS=LEFT>$key</td><TD>$_hostmachine_p{$key}</TD><TD>$_hostmachine_h{$key}</TD><TD>".Format_Bytes($_hostmachine_k{$key})."</TD>";
                        if ($daycon ne "") {
                                if ($Lang != 0) { print "<td>$daycon/$monthcon/$yearcon - $hourcon:$mincon</td></tr>"; }
                                else { print "<td>$daycon $monthlib{$monthcon} $yearcon - $hourcon:$mincon</td></tr>"; }
@@ -2629,8 +2637,7 @@ $rest_p=$TotalPages-$total_p;
 $rest_h=$TotalHits-$total_h;
 $rest_k=$TotalBytes-$total_k;
 if ($rest_p > 0) {     # All other visitors (known or not)
-       $kilo=int(($rest_k/1024)*100)/100;
-       print "<TR><TD CLASS=LEFT><font color=blue>$message[2]</font></TD><TD>$rest_p</TD><TD>$rest_h</TD><TD>$kilo</TD><TD>&nbsp;</TD></TR>\n";
+       print "<TR><TD CLASS=LEFT><font color=blue>$message[2]</font></TD><TD>$rest_p</TD><TD>$rest_h</TD><TD>".Format_Bytes($rest_k)."</TD><TD>&nbsp;</TD></TR>\n";
 }
 &tab_end;
 
@@ -2680,11 +2687,10 @@ for ($ix=0; $ix<=23; $ix++) {
        if ($max_h > 0) { $bredde_p=($BarHeight*$_time_p[$ix]/$max_h)+1; }
        if ($max_h > 0) { $bredde_h=($BarHeight*$_time_h[$ix]/$max_h)+1; }
        if ($max_k > 0) { $bredde_k=($BarHeight*$_time_k[$ix]/$max_k)+1; }
-       $kilo=int(($_time_k[$ix]/1024)*100)/100;
        print "<TD>";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_p\" HEIGHT=$bredde_p WIDTH=6 ALT=\"$message[56]: $_time_p[$ix]\" title=\"$message[56]: $_time_p[$ix]\">";
        print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_h\" HEIGHT=$bredde_h WIDTH=6 ALT=\"$message[57]: $_time_h[$ix]\" title=\"$message[57]: $_time_h[$ix]\">";
-       print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_k\" HEIGHT=$bredde_k WIDTH=6 ALT=\"$message[44]: $kilo\" title=\"$message[44]: $kilo\">";
+       print "<IMG SRC=\"$DirIcons\/other\/$BarImageVertical_k\" HEIGHT=$bredde_k WIDTH=6 ALT=\"$message[75]: ".Format_Bytes($_time_k[$ix])."\" title=\"$message[75]: ".Format_Bytes($_time_k[$ix])."\">";
        print "</TD>\n";
 }
 print "</TR></TABLE></center></TD></TR>\n";
index feb9126381a695104383cc17683a7ddb61a6e816..079f556dc2d89335054cfc7a75dd786b6bfe762f 100644 (file)
@@ -75,3 +75,4 @@ message71=Pro
 message72=Navigation
 message73=Daily statistics
 message74=Update now
+message75=Bytes
\ No newline at end of file
index 2e7dfc1cb1640efd6d5b0fbbabbe9028e2c96b97..6fe1c4e40dd296c50f33c78e6136c26ca555c56e 100644 (file)
@@ -74,3 +74,4 @@ message71=Dez
 message72=
 message73=Tag statistik
 message74=Update now
+message75=Bytes
\ No newline at end of file
index d80eb719d90499310e25796c5e365fe9651bda5e..a0f6878f050828f77f93add9aa6ead5c62c26970 100644 (file)
@@ -73,4 +73,5 @@ message70=Nov
 message71=Dec
 message72=
 message73=Dag statistikker
-message74=Opdater
\ No newline at end of file
+message74=Opdater
+message75=Bytes
\ No newline at end of file
index 99b3b7f1e4f0dc315f5c090d14fb83b542c5dfd7..9185391d27c09b53d558f07490748a6e09e30a36 100644 (file)
@@ -74,3 +74,5 @@ message71=Dec
 message72=
 message73=Day statistics
 message74=Update now
+message75=Bytes
+message76=Last update
\ No newline at end of file
index 64fd04df6e5797741aa903119e22861785d4cfd2..0e577d0c356fc50f7f7524da5b00c83d53d333b4 100644 (file)
@@ -74,3 +74,4 @@ message71=Dic
 message72=
 message73=Dia estadísticas
 message74=Update now
+message75=Bytes
\ No newline at end of file
index 17525094a385bd86c4930784d64f42ad2ea88dff..046062443a4c61cf49a6d12f070837f05def00bb 100644 (file)
@@ -74,4 +74,5 @@ message71=D
 message72=Navigation
 message73=Statistiques par jour
 message74=Mise à jour immédiate
-message75=Dernière mise à jour
+message75=Octets
+message76=Dernière mise à jour
index f217f84a18ffebf2274767ccfc6353a1ab908a01..6a75d63cd07b00bcb1e9149de8ec6b5269b0b075 100644 (file)
@@ -75,3 +75,4 @@ message71=
 message72=
 message73=Daily statistics
 message74=Update now
+message75=Bytes
\ No newline at end of file
index b899ca179d6d5a35b993d226728ba8ed170e2057..7ea8e751b0a9b27a408103f57bf5501621c13d33 100644 (file)
@@ -74,3 +74,4 @@ message71=Dic
 message72=
 message73=Giorno statistiche
 message74=Update now
+message75=Bytes
\ No newline at end of file
index 1e93e24e770a85a8e398b1ebd033229ea1fb518a..f73159feb30ec9d9bbfe351fe40b507985d60fca 100644 (file)
@@ -75,3 +75,4 @@ message71=12
 message72=
 message73=ÀÏÀÏ Åë°è
 message74=Update now
+message75=Bytes
\ No newline at end of file
index acd40928c1ed63b2e3fdce3fabb39560a08e341f..dc205e3e922b43120b70a0037a38a3434b21f073 100644 (file)
@@ -74,3 +74,4 @@ message71=Dec
 message72=Navigation
 message73=Dag statistieken
 message74=Update now
+message75=Bytes
\ No newline at end of file
index 037f163285a33740a1bbbffbe6fc889ebe280608..933a8e4bccf98127aedda3d46f33b7c4f55f297f 100644 (file)
@@ -75,3 +75,4 @@ message71=Grudzie
 message72=
 message73=Dzieñ Statystyki
 message74=Update now
+message75=Bytes
\ No newline at end of file
index 9387e3dc09f3193313e2a8c6ab4ba9071eeb81a5..ee1bdb243d9019e026476e67939d4b06d7431915 100644 (file)
@@ -74,3 +74,4 @@ message71=Dez
 message72=
 message73=Daily statistics
 message74=Update now
+message75=Bytes
index d961d97d8b9b853e05938ab979d13e03d023abe1..34b771dab0a198ca4943fe543fb358173ce64c48 100644 (file)
@@ -14,7 +14,7 @@
        This piece of data is provided as a reference only, since the number of "pages" viewed is often prefered for marketing purposes.
        </DIV>
        <DIV CLASS="CTooltip" ID="tt5">
-       This piece of information refers to the amount of data downloaded by all <b>pages</b>, <b>images</b> and <b>files</b> within your site measured in KBs.
+       This piece of information refers to the amount of data downloaded by all <b>pages</b>, <b>images</b> and <b>files</b> within your site.
        </DIV>
        <DIV CLASS="CTooltip" ID="tt13">
        #PROG# recognizes each access to your site after a <b>search</b> from the <b>#SearchEnginesArray# most popular Internet Search Engines and Directories</b> (such as Yahoo, Altavista, Lycos, Google, Voila, etc...).
index ac9a0031c59ecde7db2baeb81a667a748e866ddc..7202d783165e41e4fc4f93cfae844a841331321d 100644 (file)
@@ -14,7 +14,7 @@
        Ce compteur est donné à titre indicatif, le compteur "pages" etant préféré.
        </DIV>
        <DIV CLASS="CTooltip" ID="tt5">
-       Nombre de <b>kilo octets</b> téléchargé lors des visites du site.<br>
+       Nombre d'<b>octets</b> téléchargés lors des visites du site.<br>
        Il s agit aussi bien du volume de données du au chargement des <b>pages</b> et <b>images</b> que des <b>fichiers</b> téléchargés.
        </DIV>
        <DIV CLASS="CTooltip" ID="tt13">
index 79e6b8fedec738f005294a76907947bfc95253e9..8a03b60713ab630239a34b900ceb1d8ef4f31f49 100644 (file)
@@ -75,3 +75,4 @@ message71=
 message72=
 message73=Ùîäåííà ñòàòèñòèêà
 message74=Îíîâèòè
+message75=Bytes
\ No newline at end of file