summaryrefslogtreecommitdiffstats
path: root/format-notify
diff options
context:
space:
mode:
Diffstat (limited to 'format-notify')
-rwxr-xr-xformat-notify4
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)