-
Notifications
You must be signed in to change notification settings - Fork 1
/
dht.html
114 lines (101 loc) · 4.34 KB
/
dht.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html>
<head>
<title>DHT - Tixati Web Interface</title>
<link rel="shortcut icon" href="/favicon.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
<!--inline main.css-->
table.dhtctrl{width:98%;margin-left:1%;margin-right:1%;text-align:left;border:2px solid;padding:3pt 6pt;margin-bottom:6pt;}
table.dhtstats{width:98%;margin-left:1%;margin-right:1%;text-align:left;border:2px solid;padding:3pt 6pt;margin-bottom:6pt;}
table.dhtstats td{width:33%;padding:0pt 10pt;}
span.dhtstatsdata{float:right;font-weight:normal;}
.dhtviewfwchart{width:98%;margin-left:1%;margin-right:1%;margin-bottom:4pt;clear:both;}
.dhtviewhwlchart{width:48%;margin-left:1%;margin-right:1%;margin-bottom:4pt;float:left;}
.dhtviewhwrchart{width:48%;margin-left:1%;margin-right:1%;margin-bottom:4pt;float:right;}
</style>
</head>
<script>
<!--
function setupcharts()
{
var w = window.innerWidth || document.documentElement.clientWidth;w=Math.floor(Math.max(200,(w-16)*0.98));
var h= window.innerHeight || document.documentElement.clientHeight;h=Math.floor(Math.max(120,h/5-20));
document.getElementById("chart_orig").src="dht/chart_orig_"+w+"x"+h+"_1.png";
document.getElementById("chart_proc").src="dht/chart_proc_"+w+"x"+h+"_1.png";
w=Math.floor(w/2-2);
document.getElementById("chart_inpkts").src="dht/chart_inpkts_"+w+"x"+h+"_1.png";
document.getElementById("chart_outpkts").src="dht/chart_outpkts_"+w+"x"+h+"_1.png";
document.getElementById("chart_inbytes").src="dht/chart_inbytes_"+w+"x"+h+"_1.png";
document.getElementById("chart_outbytes").src="dht/chart_outbytes_"+w+"x"+h+"_1.png";
}
//-->
</script>
<noscript>
<style>
#chart_orig {display:none;}
#chart_proc {display:none;}
#chart_inpkts {display:none;}
#chart_outpkts {display:none;}
#chart_inbytes {display:none;}
#chart_outbytes {display:none;}
</style>
</noscript>
<body onload="setupcharts()">
<table class="topnav"><tbody>
<tr>
<td><a href="/home">Home</a></td>
<td><a href="/transfers">Transfers</a></td>
<td><a href="/bandwidth">Bandwidth</a></td>
<td class="topnavselitem"><a href="/dht">DHT</a></td>
<td><a href="/settings">Settings</a></td>
<td><a href="/help">Help</a></td>
</tr>
</tbody></table>
<br/>
<table class="dhtctrl">
<tr>
<td style="text-align:left;">Status: <br/>Node-ID: </td>
<td style="text-align:left;">$dht_status$<br/>$dht_nodeid$</td>
<td>
<form method="post" action="/dht/action">
<input type="submit" name="start" Value="Start"/> <input type="submit" name="stop" Value="Stop"/>
</form>
</td>
</tr>
</table>
<table class="dhtstats">
<tr>
<td>Table Buckets <span class="dhtstatsdata">$dht_table_buckets$</span></td>
<td>Peer DB IDs <span class="dhtstatsdata">$dht_db_ids$</span></td>
<td>Running Searches <span class="dhtstatsdata">$dht_searches_running$</span></td>
</tr>
<tr>
<td>Table Nodes <span class="dhtstatsdata">$dht_table_nodes$</span></td>
<td>Peer DB Peers <span class="dhtstatsdata">$dht_db_nodes$</span></td>
<td>Queued Searches <span class="dhtstatsdata">$dht_searches_queued$</span></td>
</tr>
</table>
<div style="overflow:hidden;">
<noscript><image class="dhtviewfwchart" src="dht/chart_orig_800x190_1.png" alt="Originated Transactions / Minute"/></noscript>
<image class="dhtviewfwchart" id="chart_orig"/>
</div>
<div style="overflow:hidden;">
<noscript><image class="dhtviewfwchart" src="dht/chart_proc_800x190_1.png" alt="Processed Transactions / Minute"/></noscript>
<image class="dhtviewfwchart" id="chart_proc"/>
</div>
<div style="overflow:hidden;">
<noscript><image class="dhtviewhwlchart" src="dht/chart_inpkts_395x190_1.png" alt="Incoming Packets / Minute"/></noscript>
<image class="dhtviewhwlchart" id="chart_inpkts"/>
<noscript><image class="dhtviewhwrchart" src="dht/chart_outpkts_395x190_1.png" alt="Outgoing Packets / Minute"/></noscript>
<image class="dhtviewhwrchart" id="chart_outpkts"/>
</div>
<div style="overflow:hidden;">
<noscript><image class="dhtviewhwlchart" src="dht/chart_inbytes_395x190_1.png" alt="Incoming Bytes / Second"/></noscript>
<image class="dhtviewhwlchart" id="chart_inbytes"/>
<noscript><image class="dhtviewhwrchart" src="dht/chart_outbytes_395x190_1.png" alt="Outgoing Bytes / Second"/></noscript>
<image class="dhtviewhwrchart" id="chart_outbytes"/>
</div>
<br/>
</body>
</html>