Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殤 Fixes calculation for average processing time #82

Merged
merged 1 commit into from
Apr 3, 2020

Conversation

alex3305
Copy link
Contributor

@alex3305 alex3305 commented Apr 2, 2020

The AdGuard Home API returns the value in seconds. To correctly convert that value into milliseconds, the multiplication should be 1000.

API result

{"avg_processing_time": "0.008353"}

I noticed this in Home Assistant. The AdGuard Home page showed my average processing time as 8ms, while the Home Assistant sensor (incorrectly) had 0.8ms for this value.

AdGuard Home
image

Home Assistant sensor
image

The AdGuard Home API returns the value in seconds. To correctly convert that
value into milliseconds, the multiplication should be 1000.
@codecov
Copy link

codecov bot commented Apr 2, 2020

Codecov Report

Merging #82 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #82   +/-   ##
=======================================
  Coverage   99.10%   99.10%           
=======================================
  Files           8        8           
  Lines         224      224           
=======================================
  Hits          222      222           
  Misses          2        2           
Flag Coverage 螖
#unittests 99.10% <酶> (酶)

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update 49e4d39...5715b59. Read the comment docs.

Copy link
Owner

@frenck frenck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks @alex3305 馃憤

@frenck frenck changed the title Fixes calculation for average processing time 馃殤 Fixes calculation for average processing time Apr 3, 2020
@frenck frenck merged commit 5260805 into frenck:master Apr 3, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants