Blame 0073-profile.py-do-not-count-negative-timestamp-differenc.patch
|
Harald Hoyer |
53e990 |
From b5f5a081d1b6c4c1890a26e637b10234164ab388 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
53e990 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
53e990 |
Date: Fri, 22 Jun 2012 15:14:27 +0200
|
|
Harald Hoyer |
53e990 |
Subject: [PATCH] profile.py: do not count negative timestamp differences
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
---
|
|
Harald Hoyer |
53e990 |
profile.py | 3 ++-
|
|
Harald Hoyer |
53e990 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
diff --git a/profile.py b/profile.py
|
|
Harald Hoyer |
53e990 |
index e1d0cab..7f98a13 100644
|
|
Harald Hoyer |
53e990 |
--- a/profile.py
|
|
Harald Hoyer |
53e990 |
+++ b/profile.py
|
|
Harald Hoyer |
53e990 |
@@ -36,7 +36,8 @@ def gen_times(t):
|
|
Harald Hoyer |
53e990 |
fx=float(x[0])
|
|
Harald Hoyer |
53e990 |
if oldx:
|
|
Harald Hoyer |
53e990 |
#print fx - float(oldx[0]), x[0], x[1], oldx[0], oldx[1]
|
|
Harald Hoyer |
53e990 |
- yield (fx - float(oldx[0]), oldx[1])
|
|
Harald Hoyer |
53e990 |
+ if ((fx - float(oldx[0])) > 0):
|
|
Harald Hoyer |
53e990 |
+ yield (fx - float(oldx[0]), oldx[1])
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
oldx = x
|
|
Harald Hoyer |
53e990 |
|