X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fdata%2Fprocessing%2Fping%2Fparser.py;h=d531118b4a7cbeb987c960d31f48fd290da35ba7;hb=6285ca51026efb69642eea9dfc7c480e722d84a9;hp=33962075af3e432bd6c422fb5f705a68165a80ef;hpb=d1c731d0fbf6c0b8a21607795fb1101a46a2518d;p=nepi.git diff --git a/src/nepi/data/processing/ping/parser.py b/src/nepi/data/processing/ping/parser.py index 33962075..d531118b 100644 --- a/src/nepi/data/processing/ping/parser.py +++ b/src/nepi/data/processing/ping/parser.py @@ -6,9 +6,8 @@ # Copyright (C) 2014 INRIA # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation; # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -27,7 +26,9 @@ # This library contains functions to parse log files generated using ping. # +import collections import re +import os # RE to match line starting "traceroute to" _rre = re.compile("\d+ bytes from ((?P[^\s]+) )?\(?(?P[^\s]+)\)??: icmp_.eq=\d+ ttl=\d+ time=(?P