Ejemplo n.º 1
0
         $ratio = 0;
     } else {
         $ratio = $d[DATA_MEMORY] / $first[DATA_MEMORY];
     }
 } elseif ($Sort == 'gz') {
     if ($first[DATA_GZ] == 0) {
         $ratio = 0;
     } else {
         $ratio = $d[DATA_GZ] / $first[DATA_GZ];
     }
 }
 $id = $d[DATA_ID];
 $gz = $d[DATA_GZ];
 $fullcpu = $d[DATA_FULLCPU];
 $status = $d[DATA_STATUS];
 $e = ElapsedTime($d);
 if ($d[DATA_MEMORY] == 0) {
     $kb = '?';
 } else {
     $kb = number_format((double) $d[DATA_MEMORY]);
 }
 printf('<tr>');
 echo "\n";
 if ($status < 0) {
     printf('<td>&nbsp;</td><td><a href="program.php?test=%s&amp;lang=%s&amp;id=%d" title="Read the Program Source Code : %s">%s</a></td>', $SelectedTest, $k, $id, $TipName, $HtmlName);
     echo "\n";
     printf('<td>%s</td><td>&nbsp;</td><td>&nbsp;</td><td>%d</td>', StatusMessage($status), $gz);
 } else {
     printf('<td>%s</td><td><a href="program.php?test=%s&amp;lang=%s&amp;id=%d" title="Read the Program Source Code : %s">%s</a></td>', PFx($ratio), $SelectedTest, $k, $id, $TipName, $HtmlName);
     echo "\n";
     printf('<td>%0.2f</td><td>%0.2f</td><td>%s</td><td>%d</td><td></td>', $fullcpu, $e, $kb, $gz);
Ejemplo n.º 2
0
 $prevId = $id;
 $prevStatus = $status;
 if ($row[DATA_TESTVALUE] == 0) {
     $n = '?';
 } else {
     $n = '&nbsp;' . number_format($row[DATA_TESTVALUE]);
 }
 if ($status < 0) {
     $e = StatusMessage($row[DATA_STATUS]);
     $e_message = ' class="message"';
     $kb = '';
     $gz = '';
     $fc = '';
     $ld = '';
 } else {
     $e = ElapsedTime($row);
     $e_message = '';
     if ($row[DATA_MEMORY] == 0) {
         $kb = '?';
     } else {
         $kb = number_format((double) $row[DATA_MEMORY]);
     }
     $gz = $row[DATA_GZ];
     $fc = number_format($row[DATA_FULLCPU], 2);
     $ld = CpuLoad($row);
 }
 if ($is_start) {
     echo "      <tbody>\n";
     if ($status == 0) {
         echo "        <tr>\n";
         echo "          <th>\n";
Ejemplo n.º 3
0
            $fullcpu = '&nbsp;';
            $elapsed = '&nbsp;';
            $load = '&nbsp;';
            $fullcpu = StatusMessage($d[DATA_STATUS]);
        } else {
            if ($d[DATA_MEMORY] == 0) {
                $kb = '?';
            } else {
                if ($TestName == 'startup') {
                    $kb = '&nbsp;';
                } else {
                    $kb = number_format((double) $d[DATA_MEMORY]);
                }
            }
            $fullcpu = number_format($d[DATA_FULLCPU], 2);
            $elapsed = ElapsedTime($d);
            $load = CpuLoad($d);
        }
        printf('<tr class="a"><td class="r"><span class="numN">%s</span></td><td class="r">%s</td><td class="r">%s</td><td class="r">%s</td><td class="r">%d</td><td class="smaller">&nbsp;&nbsp;%s</td></tr>', $n, $fullcpu, $elapsed, $kb, $d[DATA_GZ], $load);
        echo "\n";
        if ($d[DATA_STATUS] < 0) {
            break;
        }
    }
}
?>
</table>

<p>Read the <a href="#log">&darr;&nbsp;make, command line, and program output logs</a> to see how this program was run.</p>

<p>Read <a href="performance.php?test=<?php 
Ejemplo n.º 4
0
        $fullcpu = '&nbsp;';
        $elapsed = '&nbsp;';
        $load = '&nbsp;';
        $fullcpu = StatusMessage($row[DATA_STATUS]);
    } else {
        if ($row[DATA_MEMORY] == 0) {
            $kb = '?';
        } else {
            if ($TestName == 'startup') {
                $kb = '&nbsp;';
            } else {
                $kb = number_format((double) $row[DATA_MEMORY]);
            }
        }
        $fullcpu = number_format($row[DATA_FULLCPU], 2);
        $elapsed = ElapsedTime($row);
    }
    printf('<td %s><span class="numN">%s</span></td><td %s>%s</td><td %s>%s</td><td %s>%s</td><td %s>%s</td></tr>', $BAR, $n, $BAR, $fullcpu, $BAR, $elapsed, $BAR, $kb, $BAR, $row[DATA_GZ]);
}
?>
</table>


<h2><a href="#about" name="about">&nbsp;<strong><?php 
echo $LangName;
?>
</strong></a>&nbsp;:&nbsp;<?php 
echo $LangTag;
?>
&nbsp;</h2>
<p></p>
Ejemplo n.º 5
0
                <div id="summary">
                    <?php 
$sTemp = Lang("Last updated [DAYNAME], [DATE] [MONTH] [YEAR] at [TIME] [ELAPSEDTIME] ");
if ($g_aConfig["type"] == "mail") {
    //    $sTemp .= Lang("A total of [TOTALEMAILS] emails this month, an average of [DAILYAVERAGE] ");
    $sTemp .= ".";
} else {
    $sTemp .= Lang("A total of [TOTALVISITS] visits ([UNIQUEVISITORS] unique) this month, an average of [DAILYAVERAGE] per day ([DAILYUNIQUE] unique).");
}
$sTemp = str_replace("[DAYNAME]", "<span>" . Lang(date("l", $clsAWStats[$aParts[0]]->dtLastUpdate)), $sTemp);
$sTemp = str_replace("[YEAR]", date("Y", $clsAWStats[$aParts[0]]->dtLastUpdate) . "</span>", $sTemp);
$sTemp = str_replace("[DATE]", Lang(date("jS", $clsAWStats[$aParts[0]]->dtLastUpdate)), $sTemp);
$sTemp = str_replace("[MONTH]", Lang(date("F", $clsAWStats[$aParts[0]]->dtLastUpdate)), $sTemp);
$sTemp = str_replace("[TIME]", "<span>" . date("H:i", $clsAWStats[$aParts[0]]->dtLastUpdate) . "</span>", $sTemp);
$sTemp = str_replace("[ELAPSEDTIME]", ElapsedTime(time() - $clsAWStats[$aParts[0]]->dtLastUpdate), $sTemp);
$sTemp = str_replace("[TOTALVISITS]", "<span>" . number_format(SumTotalVisits($clsAWStats)) . "</span>", $sTemp);
$sTemp = str_replace("[UNIQUEVISITORS]", number_format(SumUniqueVisits($clsAWStats)), $sTemp);
$sTemp = str_replace("[DAILYAVERAGE]", "<span>" . number_format(CalclDailyVisitAvg($clsAWStats), 1) . "</span>", $sTemp);
$sTemp = str_replace("[DAILYUNIQUE]", number_format(CalclDailyUniqueAvg($clsAWStats), 1), $sTemp);
echo $sTemp;
?>
                </div>
                <div id="menu">
                    <?php 
echo $clsPage->DrawMenu();
?>
                </div>
                <br style="clear: both" />
                <div id="loading">&nbsp;</div>
            </div>