From 8a3bc49cc9c17c7477aac14513111d02d5285bbe Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 29 Jul 2013 19:08:35 +0200 Subject: random delay between write tests --- format-notify | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format-notify b/format-notify index 42123e3..f461190 100755 --- a/format-notify +++ b/format-notify @@ -1,6 +1,6 @@ #!/usr/bin/env python -import os, sys, re, errno, time +import os, sys, re, errno, time, random def add_color(status): if status == 'WARNING': @@ -47,7 +47,7 @@ def main(): if time.time() - now > 2: sys.exit(1) else: - time.sleep(.5) + time.sleep(random.random() * 0.3) os.write(f, msg) os.close(f) -- cgit v1.2.3-1-g7c22