From: Harald Hoyer Date: Fri, 22 Jun 2012 13:14:27 +0000 (+0200) Subject: profile.py: do not count negative timestamp differences X-Git-Tag: 020~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28a6eef3bebfbeb81c95b1cf8129cbe85fe537d8;p=thirdparty%2Fdracut.git profile.py: do not count negative timestamp differences --- diff --git a/profile.py b/profile.py index e1d0cabf8..7f98a136f 100644 --- a/profile.py +++ b/profile.py @@ -36,7 +36,8 @@ def gen_times(t): fx=float(x[0]) if oldx: #print fx - float(oldx[0]), x[0], x[1], oldx[0], oldx[1] - yield (fx - float(oldx[0]), oldx[1]) + if ((fx - float(oldx[0])) > 0): + yield (fx - float(oldx[0]), oldx[1]) oldx = x