Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Fix] Processing Time Incorrect #14

Merged
merged 2 commits into from
Jun 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Adds a check to ensure that the users version of AdGuard Home is recent enough to support the required API calls (#5)
Allows for graceful exit, instead of panicking
Fixes the units in Average Processing Time (seconds were incorrectly displayed as milliseconds) (#11)
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "adguardian"
version = "1.4.0"
version = "1.5.0"
edition = "2021"
authors = ["Alicia Sykes"]
description = "Terminal-based, real-time traffic monitoring and statistics for your AdGuard Home instance "
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn render_status_paragraph<'a>(status: &'a StatusResponse, stats: &'a StatsR
]),
Spans::from(vec![
Span::styled("Avg Processing Time: ", Style::default()),
Span::styled(format!("{}ms", stats.avg_processing_time), value_style),
Span::styled(format!("{}ms", (stats.avg_processing_time * 1000.0) as i16), value_style),
]),
Spans::from(vec![
Span::styled("Version: ", Style::default()),
Expand Down