adding hashrate chart

This commit is contained in:
aglkm
2024-09-22 17:14:03 +03:00
parent cb775ecd9c
commit a4603ea536
5 changed files with 76 additions and 85 deletions

View File

@@ -223,6 +223,8 @@ fn stats(statistics: &State<Arc<Mutex<Statistics>>>) -> Template {
user_agent: data.user_agent.clone(),
count: data.count.clone(),
total: data.total,
hashrate: data.hashrate.clone(),
hash_date: data.hash_date.clone(),
})
}
@@ -673,7 +675,7 @@ async fn main() {
error!("{}", e);
},
}
tokio::time::sleep(Duration::from_secs(15)).await;
}
});