Bump ver. Round failure rate.
This commit is contained in:
parent
d5fa8036e8
commit
ea2cea573e
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2217,7 +2217,7 @@ checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78"
|
||||
|
||||
[[package]]
|
||||
name = "reminder-rs"
|
||||
version = "1.6.28"
|
||||
version = "1.6.29"
|
||||
dependencies = [
|
||||
"base64 0.21.2",
|
||||
"chrono",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "reminder-rs"
|
||||
version = "1.6.28"
|
||||
version = "1.6.29"
|
||||
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
||||
edition = "2021"
|
||||
license = "AGPL-3.0 only"
|
||||
|
@ -14,12 +14,12 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
(iv, frame) => iv + frame.count,
|
||||
0
|
||||
);
|
||||
let rate = historyFailed / (historySent + historyFailed);
|
||||
let formatted = Math.round(rate * 10000) / 100;
|
||||
|
||||
document.querySelector("#historySent").textContent = historySent;
|
||||
document.querySelector("#historyFailed").textContent = historyFailed;
|
||||
document.querySelector("#failRate").textContent = `${
|
||||
(historyFailed / (historySent + historyFailed)) * 100
|
||||
}%`;
|
||||
document.querySelector("#failRate").textContent = `${formatted}%`;
|
||||
|
||||
new Chart(document.getElementById("schedule"), {
|
||||
type: "bar",
|
||||
|
Loading…
Reference in New Issue
Block a user