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]]
|
[[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",
|
||||||
|
@ -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"
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user