Bugzilla – Bug 1592
Parsing bug in FlowMonitor example script
Last modified: 2013-12-15 03:04:12 UTC
src/flow-monitor/examples/flowmon-parse-results.py This example script nicely parses XML output from a FlowMonitor. While parsing, it strips off the last two characters of time values to convert them into a long data type, assuming that they end in ".0". They actually end in ".0ns", so the script fails as written. I replaced "[:-2]" with "[:-4]" and it worked.
Created attachment 1736 [details] patch implementing the suggestion Indeed, the reporter is right
+1. Shall I attribute the push to Eric Hein ?
(In reply to Tommaso Pecorella from comment #2) > +1. Shall I attribute the push to Eric Hein ? Yes, in the past we have sometimes added a parenthetical attribution in the commit statement for someone who suggests a small fix, e.g. "Parsing bug in FlowMonitor example script (fix suggested by Eric Hein)"
Pushed in changeset 10526:a69d7ca6e5b4