about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rwxr-xr-xsrc/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 6d0f27e..5ba279f 100755
--- a/src/main.rs
+++ b/src/main.rs
@@ -443,7 +443,11 @@ fn template_content(state: AwakeState, frontmatter: &Frontmatter, marked: String
 }
 
 async fn stats(State(state): State<AwakeState>, Path(name): Path<String>) -> Response {
-	const NAMES: &[&'static str] = &["current_hostmeminfo.gif", "current_hostnetinfo.gif"];
+	const NAMES: &[&'static str] = &[
+		"current_hostmeminfo.gif",
+		"current_hostnetinfo.gif",
+		"current_hostcpuinfo.gif",
+	];
 
 	if NAMES.contains(&name.as_str()) {
 		let path = state.cache_path.join(name);