diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2013-07-29 19:08:35 +0200 |
---|---|---|
committer | root <root@vm-monitoring.spline.inf.fu-berlin.de> | 2013-07-29 19:08:35 +0200 |
commit | 8a3bc49cc9c17c7477aac14513111d02d5285bbe (patch) | |
tree | 5037e9bcb0222d48c228a7f49121eebdac8f0f64 | |
parent | f2fb9a84e71f36d25142be07d0c8d9b9d239aeca (diff) | |
download | format-notify-8a3bc49cc9c17c7477aac14513111d02d5285bbe.tar.gz format-notify-8a3bc49cc9c17c7477aac14513111d02d5285bbe.tar.bz2 format-notify-8a3bc49cc9c17c7477aac14513111d02d5285bbe.zip |
random delay between write tests
-rwxr-xr-x | format-notify | 4 |
1 files 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) |