From abd90f42bec5b188e19eddbeed97b62c3ff14aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Thu, 22 Nov 2007 11:56:34 +0200 Subject: [PATCH] Adjust test log generator --- debug-viewer/tests/create-test-log.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debug-viewer/tests/create-test-log.py b/debug-viewer/tests/create-test-log.py index 36ec8dca74..f4501617ba 100755 --- a/debug-viewer/tests/create-test-log.py +++ b/debug-viewer/tests/create-test-log.py @@ -25,10 +25,12 @@ def main (): Data.debug_level_debug, Data.debug_level_info,) + shift = 0 for i in xrange (count): ts = i * 10000 - level = levels[i % 3] + shift += i % (count // 100) + level = levels[(i + shift) % 3] line = Data.LogLine ([ts, pid, thread, level, category, filename, file_line, function, object_, message]) print line.line_string ()