[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: www/areas/cvs-digest/enzyme
From: Derek Kite <dkite () netidea ! com>
Date: 2004-11-27 4:51:04
Message-ID: 20041127045104.A178F1B915 () office ! kde ! org
[Download RAW message or body]
CVS commit by dkite:
Jeff Snyder's fixes to the statistics.
M +6 -5 enzyme_stat.php 1.10
--- www/areas/cvs-digest/enzyme/enzyme_stat.php #1.9:1.10
@@ -257,5 +257,5 @@
function create_list() {
unset($this->fd);
- $max = $this->authormax / 300;
+ $max = log($this->authormax) / 300;
foreach ($this->modarray as $moddataar) {
if ($this->modw == 0)
@@ -275,5 +275,5 @@
$authdataar["AUTHORNAME"] = get_long_name($authdataar["AUTHORNAME"]);
if ($authdataar["AUTHORLINES"] == "") $authdataar["AUTHORLINES"] = 0;
- $authdataar["AUTHORLINESWIDTH"] = $authdataar["AUTHORLINES"] / $max;
+ $authdataar["AUTHORLINESWIDTH"] = log(1 + $authdataar["AUTHORLINES"]) / $max;
// echo "<br>";
@@ -289,5 +289,5 @@
$this->template->assigndata("","","",$this->comtpl);
unset($this->fd);
- $max = $this->authormax10 / 150;
+ $max = log($this->authormax10) / 75;
$count = 0;
foreach ($this->modarray as $moddataar) {
@@ -309,5 +309,5 @@
$authdataar["AUTHORNAME"] = trim($authdataar["AUTHORNAME"]);
$authdataar["AUTHORNAME"] = get_long_name($authdataar["AUTHORNAME"]);
- $authdataar["AUTHORLINESWIDTH"] = $authdataar["AUTHORLINES"] / $max;
+ $authdataar["AUTHORLINESWIDTH"] = log(1 + $authdataar["AUTHORLINES"]) / $max;
$this->template->assigndata("authorstat","","",$authdataar);
$count++;
@@ -320,5 +320,5 @@
preg_match("/.*?\((.*)\)/",$i18ndataar["LANG"],$matches);
$i18ndataar["LANGABBREV"] = $matches[1];
- $i18ndataar["LANGWIDTH"] = $i18ndataar["PERCENT"] * 4;
+ $i18ndataar["LANGWIDTH"] = $i18ndataar["PERCENT"] * 2;
$this->template->assigndata("i18n","","",$i18ndataar);
$count++;
@@ -342,4 +342,5 @@
$toptenwidth = $toptendataar["TOPTENCOUNT"] / 150;
}
+
$toptendataar["toptenname"] = $toptendataar["NICK"];
$toptendataar["toptenwidth"] = $toptendataar["TOPTENCOUNT"] / $toptenwidth;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic