[Git][NTPsec/ntpsec][master] ntpviz: add min and max to percentile date in html.
Gary E. Miller
gitlab at mg.gitlab.com
Wed Oct 5 05:55:51 UTC 2016
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
b1c7ada8 by Gary E. Miller at 2016-10-04T22:53:05-07:00
ntpviz: add min and max to percentile date in html.
- - - - -
1 changed file:
- ntpstats/ntpviz
Changes:
=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -130,11 +130,13 @@ class VizStats(NTPStats):
self.percs.update({k: v * self.multiplier
for k, v in list(self.percs.items())})
+ self.max = self.percs[100]
self.ninetynine = self.percs[99]
self.ninetyfive = self.percs[95]
self.fifty = self.percs[50]
self.five = self.percs[5]
self.one = self.percs[1]
+ self.min = self.percs[0]
self.nf_m_f = self.ninetyfive - self.five
self.nn_m_o = self.ninetynine - self.one
@@ -143,11 +145,12 @@ class VizStats(NTPStats):
self.pstd = pstdev( values, mu=self.mu ) * self.multiplier
self.mu *= self.multiplier
self.stats_html = """\
-<p>Percentiles: 99%% = %(ninetynine)s %(unit)s,
- 95%% = %(ninetyfive).3f %(unit)s,
- 50%% = %(fifty).3f %(unit)s,
- 5%% = %(five).3f %(unit)s,
- 1%% = %(one).3f %(unit)s<br>
+<p>Percentiles: Max: %(max)s, 99%%: %(ninetynine)s,
+ 95%%: %(ninetyfive).3f,
+ 50%%: %(fifty).3f,
+ 5%%: %(five).3f,
+ 1%%: %(one).3f,
+ Min: %(one).3f %(unit)s<br>
Ranges: 99%% - 1%% = %(nn_m_o).3f %(unit)s,
95%% - 5%% = %(nf_m_f).3f %(unit)s<br>
Deviation: Mean = %(mu).3f %(unit)s,
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/b1c7ada84be7f7047f041fe8c511af686cccd0f1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161005/3b422340/attachment.html>
More information about the vc
mailing list