[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r14996: (ticket:101) Fixing error with detecting non-running routers (torstatus/trunk/web)
Author: kasimir
Date: 2008-06-06 15:28:03 -0400 (Fri, 06 Jun 2008)
New Revision: 14996
Modified:
torstatus/trunk/web/index.php
Log:
(ticket:101) Fixing error with detecting non-running routers
Modified: torstatus/trunk/web/index.php
===================================================================
--- torstatus/trunk/web/index.php 2008-06-06 18:35:15 UTC (rev 14995)
+++ torstatus/trunk/web/index.php 2008-06-06 19:28:03 UTC (rev 14996)
@@ -775,7 +775,15 @@
}
else
{
- echo "<td class='TDc'><img src='/img/routerdown.png' alt=' router is down' title='Router is currently down'/>N/A</td>";
+ if ($record['Running'] == 0 && $record['Hibernating'] == 0)
+ {
+ echo "<td class='TDc'><img src='/img/routerdown.png' alt=' router is down' title='Router is currently down'/>N/A</td>";
+ }
+ else
+ {
+ echo "<td class='TDc'><img src='/img/blank.gif' alt=' ' width='12px' />N/A</td>";
+
+ }
}
break;