summaryrefslogtreecommitdiffhomepage
path: root/plugins/statistics/statistics.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-03 11:02:59 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-03 11:02:59 +0200
commit4e699f552db264b9d988873f2189440280e821a7 (patch)
tree01161dee2c00908de5860fd6f265e8b4be002e8b /plugins/statistics/statistics.cpp
parenta08cc1cd227e60da8966c45d70b739cd7737f6bd (diff)
Minor corrections
Diffstat (limited to 'plugins/statistics/statistics.cpp')
-rw-r--r--plugins/statistics/statistics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/statistics/statistics.cpp b/plugins/statistics/statistics.cpp
index 5eef858..35ea241 100644
--- a/plugins/statistics/statistics.cpp
+++ b/plugins/statistics/statistics.cpp
@@ -114,10 +114,10 @@ std::string statistics_plugin::generate_page(
result += "<h1>Webserver Statistics</h1>";
result += "<p>Host uptime: "s + GetServerParam("uptime_host") + "</p>";
result += "<p>Host webserver: "s + GetServerParam("uptime_webserver") + "</p>";
- result += "<p>IPv6 fraction by requests: "s + std::to_string(ipv6_fraction_by_requests * 100) + "</p>";
- result += "<p>IPv6 fraction by bytes: "s + std::to_string(ipv6_fraction_by_bytes * 100) + "</p>";
- result += "<p>HTTPS fraction by requests: "s + std::to_string(https_fraction_by_requests * 100) + "</p>";
- result += "<p>HTTPS fraction by bytes: "s + std::to_string(https_fraction_by_bytes * 100) + "</p>";
+ result += "<p>IPv6 fraction by requests: "s + std::to_string(ipv6_fraction_by_requests * 100) + "%</p>";
+ result += "<p>IPv6 fraction by bytes: "s + std::to_string(ipv6_fraction_by_bytes * 100) + "%</p>";
+ result += "<p>HTTPS fraction by requests: "s + std::to_string(https_fraction_by_requests * 100) + "%</p>";
+ result += "<p>HTTPS fraction by bytes: "s + std::to_string(https_fraction_by_bytes * 100) + "%</p>";
result += "<pre>"s + statistics + "</pre>"s;
result += footer;