mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-07 15:17:47 +00:00
Add request stats to instance info HTML
This commit is contained in:
parent
de68409610
commit
255307a4f7
1 changed files with 6 additions and 0 deletions
|
@ -128,6 +128,8 @@ impl InstanceInfo {
|
||||||
["Deploy timestamp", &self.deploy_unix_ts.to_string()],
|
["Deploy timestamp", &self.deploy_unix_ts.to_string()],
|
||||||
["Compile mode", &self.compile_mode],
|
["Compile mode", &self.compile_mode],
|
||||||
["SFW only", &convert(&self.config.sfw_only)],
|
["SFW only", &convert(&self.config.sfw_only)],
|
||||||
|
["Reddit request count", &self.reddit_requests.load(std::sync::atomic::Ordering::SeqCst).to_string()],
|
||||||
|
["Total request count", &self.total_requests.load(std::sync::atomic::Ordering::SeqCst).to_string()],
|
||||||
])
|
])
|
||||||
.with_header_row(["Settings"]),
|
.with_header_row(["Settings"]),
|
||||||
);
|
);
|
||||||
|
@ -161,6 +163,8 @@ impl InstanceInfo {
|
||||||
Deploy timestamp: {}\n
|
Deploy timestamp: {}\n
|
||||||
Compile mode: {}\n
|
Compile mode: {}\n
|
||||||
SFW only: {:?}\n
|
SFW only: {:?}\n
|
||||||
|
Reddit request count: {}\n
|
||||||
|
Total request count: {}\n
|
||||||
Config:\n
|
Config:\n
|
||||||
Banner: {:?}\n
|
Banner: {:?}\n
|
||||||
Hide awards: {:?}\n
|
Hide awards: {:?}\n
|
||||||
|
@ -181,6 +185,8 @@ impl InstanceInfo {
|
||||||
self.deploy_unix_ts,
|
self.deploy_unix_ts,
|
||||||
self.compile_mode,
|
self.compile_mode,
|
||||||
self.config.sfw_only,
|
self.config.sfw_only,
|
||||||
|
self.reddit_requests.load(std::sync::atomic::Ordering::SeqCst),
|
||||||
|
self.total_requests.load(std::sync::atomic::Ordering::SeqCst),
|
||||||
self.config.banner,
|
self.config.banner,
|
||||||
self.config.default_hide_awards,
|
self.config.default_hide_awards,
|
||||||
self.config.default_theme,
|
self.config.default_theme,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue