Skip to content

Commit f584c0e

Browse files
authored
Merge pull request #14 from Lissy93/FIX/processing-time (Fixes #11)
[Fix] Processing Time Incorrect Fixes #11
2 parents aa6110d + e583f7f commit f584c0e

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.github/CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
Adds a check to ensure that the users version of AdGuard Home is recent enough to support the required API calls (#5)
2-
Allows for graceful exit, instead of panicking
1+
Fixes the units in Average Processing Time (seconds were incorrectly displayed as milliseconds) (#11)

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "adguardian"
3-
version = "1.4.0"
3+
version = "1.5.0"
44
edition = "2021"
55
authors = ["Alicia Sykes"]
66
description = "Terminal-based, real-time traffic monitoring and statistics for your AdGuard Home instance "

src/widgets/status.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub fn render_status_paragraph<'a>(status: &'a StatusResponse, stats: &'a StatsR
5151
]),
5252
Spans::from(vec![
5353
Span::styled("Avg Processing Time: ", Style::default()),
54-
Span::styled(format!("{}ms", stats.avg_processing_time), value_style),
54+
Span::styled(format!("{}ms", (stats.avg_processing_time * 1000.0) as i16), value_style),
5555
]),
5656
Spans::from(vec![
5757
Span::styled("Version: ", Style::default()),

0 commit comments

Comments
 (0)