Changeset 29072 for trunk/ippMonitor/raw/czartool_labels.php
- Timestamp:
- Aug 27, 2010, 9:23:05 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/czartool_labels.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/czartool_labels.php
r29056 r29072 39 39 if ($selectedStage == "") { $selectedStage = "all_stages"; } 40 40 41 echo "<p align=\"center\"> Current status of the IPP as of $lastUpdateTime (faults are shown in parentheses). <br>Documentation can be found <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\">here</a> and cluster load monitored <a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\">here</a></p>"; 41 $nsStatus = getNightlyScienceStatus($czardb); 42 echo "<p align=\"center\"> Current status of the IPP as of $lastUpdateTime (faults are shown in parentheses). <br>Documentation can be found <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\">here</a> and cluster load monitored <a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\">here</a><br>Current nightly science status: $nsStatus</p>"; 43 42 44 43 45 // deal with reverts: turn on or off if requested and pass current revert state for this stage onto labels table later … … 366 368 ########################################################################### 367 369 # 370 # Returns current nightly science status 371 # 372 ########################################################################### 373 function getNightlyScienceStatus($db) { 374 375 $sql = "SELECT status FROM nightlyscience"; 376 if ($debug) {echo "$sql<br>";} 377 378 $qry = $db->query($sql); 379 if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";} 380 $qry->fetchInto($row); 381 382 return $row[0]; 383 } 384 385 ########################################################################### 386 # 368 387 # Returns whether this stage is reverting or not 369 388 #
Note:
See TracChangeset
for help on using the changeset viewer.
