about summary refs log tree commit diff
path: root/served/starlight.html
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2025-02-25 19:21:42 -0600
committergennyble <gen@nyble.dev>2025-02-25 19:21:42 -0600
commit416df3f658028fd71618879fb10a6d36f54689a3 (patch)
tree5f5ecf1cbbfeb4855dd42fb5caea341a738778ce /served/starlight.html
parent5cbf6129e57bed9e509a25ca5b238b36b205566b (diff)
download∞-416df3f658028fd71618879fb10a6d36f54689a3.tar.gz
∞-416df3f658028fd71618879fb10a6d36f54689a3.zip
Cpu graph :)
Diffstat (limited to 'served/starlight.html')
-rw-r--r--served/starlight.html20
1 files changed, 14 insertions, 6 deletions
diff --git a/served/starlight.html b/served/starlight.html
index b24a7f0..94838a9 100644
--- a/served/starlight.html
+++ b/served/starlight.html
@@ -22,11 +22,9 @@ are generated every fifteen, so data should be reasonably current.
 		<h2>Memory</h2>
 		<img src="/api/stats/current_hostmeminfo.gif" id="hostmeminfo">
 		<p>
-			parsed from <code>/proc/meminfo</code>
-		</p>
-		<p>
-			total: {stats.mem.total}MB<br />
-			usage: {stats.mem.usage}MB<br />
+			parsed from <code>/proc/meminfo</code><br />
+			range 0 to {stats.mem.total}MB<br />
+			current: {stats.mem.usage}MB
 		</p>
 	</section>
 
@@ -34,9 +32,19 @@ are generated every fifteen, so data should be reasonably current.
 		<h2>Network</h2>
 		<img src="/api/stats/current_hostnetinfo.gif" id="hostnetinfo">
 		<p>
+			parsed from <code>/proc/net/dev</code><br />
 			TX in blue // RX in green<br />
 			range from 0kbps to {stats.net.max_bound}kbps<br />
-			parsed from <code>/proc/net/dev</code>
+		</p>
+	</section>
+
+	<section class="stat">
+		<h2>CPU</h2>
+		<img src="/api/stats/current_hostcpuinfo.gif" id="hostcpuinfo">
+		<p>
+			parsed from <code>/proc/stat</code><br />
+			cpu usage on avg.<br />
+			range from 0% to {stats.cpu.max_bound}%.<br />
 		</p>
 	</section>
 </section>
\ No newline at end of file