diff --git a/Cargo.lock b/Cargo.lock index be5e404..396c132 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2471,7 +2471,7 @@ dependencies = [ [[package]] name = "rust_rest_api" -version = "0.4.1" +version = "0.4.2" dependencies = [ "anyhow", "askama", diff --git a/Cargo.toml b/Cargo.toml index cf2d77f..22ed254 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_rest_api" -version = "0.4.1" +version = "0.4.2" edition = "2024" license = "MIT" authors = ["Habibi-Dev"] diff --git a/templates/index.html b/templates/index.html index b618190..106758a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -71,7 +71,7 @@ } ], usage: { - total_requests: "{{ stats.total }}", + total_requests: Number("{{ stats.total }}").toLocaleString(), by_endpoint: { "/health": "{{ stats.health.unwrap_or(0) }}", "/time": "{{ stats.time.unwrap_or(0) }}",