From 5b738ec2b9daeb79b94d692c699f2ae0e35b646d Mon Sep 17 00:00:00 2001 From: René Stadler Date: Thu, 22 Nov 2007 11:56:34 +0200 Subject: Adjust test log generator --- tests/create-test-log.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/create-test-log.py b/tests/create-test-log.py index 36ec8dc..f450161 100755 --- a/tests/create-test-log.py +++ b/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 () -- cgit v1.2.3