forked from DeathByDenim/gameserver
22 lines
857 B
HTML
22 lines
857 B
HTML
<noscript>
|
|
Live stuff requires JavaScript unfortunately
|
|
</noscript>
|
|
<h6>CPU</h6>
|
|
<div class="graph">
|
|
<svg id="cpugraph" width="400" height="200" xmlns="http://www.w3.org/2000/svg">
|
|
<rect class="graphframe" x="0" y="0" width="301" height="100" />
|
|
</svg>
|
|
</div>
|
|
<h6>Memory</h6>
|
|
<div class="graph">
|
|
<svg id="memgraph" width="400" height="200" xmlns="http://www.w3.org/2000/svg">
|
|
<rect class="graphframe" x="0" y="0" width="301" height="100" />
|
|
</svg>
|
|
</div>
|
|
<script>
|
|
d3.select('#cpugraph').attr('viewBox', '0 0 310 100');
|
|
d3.select('#memgraph').attr('viewBox', '0 0 310 100');
|
|
update();
|
|
setInterval(update, 5000);
|
|
</script>
|