- Added missing config entry.

- Fixed Bug #0000002.
This commit is contained in:
Frank Fegert 2009-06-23 06:57:26 +00:00
parent 109bbac963
commit 577a78e337
2 changed files with 6 additions and 8 deletions

View File

@ -877,11 +877,9 @@ class TSMMonitor {
$outp .= $this->renderZebraTableRow($row, $i%2, $col, $color, "");
$i++;
}
}
else if ($type == "verticaltable") {
} else if ($type == "verticaltable") {
$outp = $this->adodb->fetchArrayDB($sql);
}
else if ($type == "timetable") {
} else if ($type == "timetable") {
$sqlres = $this->adodb->fetchArrayDB($sql);
$outp = array();
foreach ($sqlres as $row) {
@ -896,8 +894,7 @@ class TSMMonitor {
}
array_push($outp, $rowarray2);
}
}
else if ($type == "timetable2") {
} else if ($type == "timetable2") {
$sqlres = $this->adodb->fetchArrayDB($sql);
$outp = array();
foreach ($sqlres as $row) {
@ -1205,7 +1202,7 @@ class TSMMonitor {
$out= "<tr align='left'><th>".$header."</th><th>";
for ($count = 0; $count <= 24; $count++) {
$imagename = strftime("%H", $startpunkt + ($count * 3600));
$out .= "<img src='images/".$imagename.".gif' height=20px width=".$pxperHour."px title='".strftime("%H:00 (%D)", $startpunkt+($count*$hour))."' />";
$out .= "<img src='images/".$imagename.".gif' height=20px width=".$pxperHour."px title='".strftime("%H:00 (%D)", $startpunkt + ($count * 3600))."' />";
}
$out .= "</th></tr>";

View File

@ -61,7 +61,8 @@ INSERT INTO `cfg_config` (`id`, `confkey`, `confval`, `description`) VALUES
(4, 'path_polldlog', '', 'PollD Logfile Path'),
(5, 'loglevel_tm', 'INFO', 'TSM Monitor Log Level'),
(6, 'loglevel_polld', 'INFO', 'PollD Log Level'),
(7, 'path_dsmadmc', '/usr/bin/dsmadmc', '');
(7, 'path_dsmadmc', '', 'dsmadmc Binary Path'),
(8, 'path_php', '', 'PHP Binary Path');
-- --------------------------------------------------------