| To: | Stan Cox <scox@xxxxxxxxxx> |
|---|---|
| Subject: | Divide-by-zero in pmcollectl - test failure |
| From: | Nathan Scott <nathans@xxxxxxxxxx> |
| Date: | Fri, 20 Sep 2013 06:00:12 -0400 (EDT) |
| Cc: | PCP Mailing List <pcp@xxxxxxxxxxx> |
| Delivered-to: | pcp@xxxxxxxxxxx |
| In-reply-to: | <677490604.25941861.1379671142792.JavaMail.root@xxxxxxxxxx> |
| Reply-to: | Nathan Scott <nathans@xxxxxxxxxx> |
| Thread-index: | 4iNrOcCvfhtkL0dRgAlPraus0jauZw== |
| Thread-topic: | Divide-by-zero in pmcollectl - test failure |
Hey Stan,
Test 709 hit a div-by-zero python traceback today for me.
I've never seen this one before, but looks like there's an
assumption that network.interface.out.packets rate is never
zero over an interval maybe?
-bash-4.1$ diff 709.out*
29a30,37
> Traceback (most recent call last):
> File "/usr/bin/pmcollectl", line 692, in <module>
> ssx.print_line()
> File "/usr/bin/pmcollectl", line 131, in print_line
> self.print_verbose()
> File "/usr/bin/pmcollectl", line 462, in print_verbose
> sum(self.ss.get_metric_value('network.interface.out.packets')),
> ZeroDivisionError: long division or modulo by zero
33d40
< 9 9 9 9 9 9 9 9 9 9 9
cheers.
--
Nathan
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | pcp updates: misc, Nathan Scott |
|---|---|
| Next by Date: | pcp updates: fche merge, pmdaproc, qa, Nathan Scott |
| Previous by Thread: | pcp updates: pmdaproc, Nathan Scott |
| Next by Thread: | pcp updates: fche merge, pmdaproc, qa, Nathan Scott |
| Indexes: | [Date] [Thread] [Top] [All Lists] |