ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/alerts/alerts.php
(Generate patch)

Comparing projects/cms/source/reports/php/alerts/alerts.php (file contents):
Revision 1.24 by pjm2, Wed Mar 21 18:45:05 2001 UTC vs.
Revision 1.25 by pjm2, Wed Mar 21 19:10:33 2001 UTC

# Line 36 | Line 36 | function printAlert($machine, $alert, $small="") {
36      $timeTillNextAlert = getValue("timeTillNextAlert", $alert);
37      $initialAlertTime = getValue("initialAlertTime", $alert);
38  
39 +    if ($thresholdLevel == "1") {
40 +        $thresholdLevel = "Lower";
41 +    }
42 +    else if ($thresholdLevel == "2") {
43 +        $thresholdLevel = "Upper";
44 +    }
45 +    else {
46 +        $thresholdLevel = "Normal";
47 +    }
48 +
49      $alertColour = $alertLevelColours[$alertLevelNum];
50      $alertLevel = $alertLevelNames[$alertLevelNum];
51      $initialAlertTime = strftime("%x %X", intval($initialAlertTime / 1000));
# Line 76 | Line 86 | EOT;
86            </tr>
87            <tr>
88              <td align="right"><font size="2">Threshold:</font></td>
89 <            <td align="left">$thresholdValue</td>
89 >            <td align="left">$thresholdValue ($thresholdLevel)</td>
90            </tr>
91            <tr>
92              <td align="right"><font size="2">Alert value:</font></td>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines