Bump ver. Round failure rate.

This commit is contained in:
jude 2023-07-30 19:17:44 +01:00
parent d5fa8036e8
commit ea2cea573e
3 changed files with 5 additions and 5 deletions

2
Cargo.lock generated
View File

@ -2217,7 +2217,7 @@ checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78"
[[package]] [[package]]
name = "reminder-rs" name = "reminder-rs"
version = "1.6.28" version = "1.6.29"
dependencies = [ dependencies = [
"base64 0.21.2", "base64 0.21.2",
"chrono", "chrono",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "reminder-rs" name = "reminder-rs"
version = "1.6.28" version = "1.6.29"
authors = ["Jude Southworth <judesouthworth@pm.me>"] authors = ["Jude Southworth <judesouthworth@pm.me>"]
edition = "2021" edition = "2021"
license = "AGPL-3.0 only" license = "AGPL-3.0 only"

View File

@ -14,12 +14,12 @@ document.addEventListener("DOMContentLoaded", () => {
(iv, frame) => iv + frame.count, (iv, frame) => iv + frame.count,
0 0
); );
let rate = historyFailed / (historySent + historyFailed);
let formatted = Math.round(rate * 10000) / 100;
document.querySelector("#historySent").textContent = historySent; document.querySelector("#historySent").textContent = historySent;
document.querySelector("#historyFailed").textContent = historyFailed; document.querySelector("#historyFailed").textContent = historyFailed;
document.querySelector("#failRate").textContent = `${ document.querySelector("#failRate").textContent = `${formatted}%`;
(historyFailed / (historySent + historyFailed)) * 100
}%`;
new Chart(document.getElementById("schedule"), { new Chart(document.getElementById("schedule"), {
type: "bar", type: "bar",