[or-cvs] r14721: Added HSDir to the network details graph page (torstatus/trunk/web)

kasimir at seul.org kasimir at seul.org
Sun May 25 05:10:43 UTC 2008


Author: kasimir
Date: 2008-05-25 01:10:43 -0400 (Sun, 25 May 2008)
New Revision: 14721

Modified:
   torstatus/trunk/web/network_detail.php
Log:
Added HSDir to the network details graph page

Modified: torstatus/trunk/web/network_detail.php
===================================================================
--- torstatus/trunk/web/network_detail.php	2008-05-25 05:09:57 UTC (rev 14720)
+++ torstatus/trunk/web/network_detail.php	2008-05-25 05:10:43 UTC (rev 14721)
@@ -1,6 +1,5 @@
 <?php 
 
-// Copyright (c) 2006-2007, Joseph B. Kowalski
 // See LICENSE for licensing information 
 
 // Start new session
@@ -51,7 +50,7 @@
 $Platform_Legend = null;
 
 $Summary_DATA_ARRAY = null;
-$Summary_LABEL_ARRAY = array('Total','Authority','BadDirectory','BadExit','Exit','Fast','Guard','Hibernating','Named','Stable','Non-running','Valid','V2Dir','Dir. Mirror');
+$Summary_LABEL_ARRAY = array('Total','Authority','BadDirectory','BadExit','Exit','Fast','Guard','Hibernating','Named','Stable','Non-running','Valid','V2Dir','Dir. Mirror', 'HSDir');
 $Summary_Title = 'Aggregate Summary -- Number of Routers Matching Specified Criteria';
 $Summary_Legend = null;
 
@@ -453,6 +452,7 @@
 	(select count(*) from $ActiveNetworkStatusTable where FRunning = '0') as 'Running',
 	(select count(*) from $ActiveNetworkStatusTable where FValid = '1' AND FRunning = '1') as 'Valid',
 	(select count(*) from $ActiveNetworkStatusTable where FV2Dir = '1' AND FRunning = '1') as 'V2Dir',
+	(select count(*) from $ActiveNetworkStatusTable where FHSDir = '1' AND FRunning = '1') as 'HSDir',
 	(select count(*) from $ActiveNetworkStatusTable where DirPort > 0 AND FRunning = '1') as 'DirMirror'";
 
 $result = mysql_query($query) or die('Query failed: ' . mysql_error());
@@ -472,6 +472,7 @@
 $Summary_DATA_ARRAY[11] = $record['Valid'];
 $Summary_DATA_ARRAY[12] = $record['V2Dir'];
 $Summary_DATA_ARRAY[13] = $record['DirMirror'];
+$Summary_DATA_ARRAY[14] = $record['HSDir'];
 
 // Register Summary variables in session
 if (!isset($_SESSION['SummaryGraph_DATA_ARRAY_SERIALIZED'])) 



More information about the tor-commits mailing list