Browse Source

Allow floats to be specified for sleep time.

Chris McDonough 18 năm trước cách đây
mục cha
commit
bd1d5e9edf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/supervisor/scripts/sample_commevent.py

+ 1 - 1
src/supervisor/scripts/sample_commevent.py

@@ -33,7 +33,7 @@ def main(sleep):
 
 if __name__ == '__main__':
     if len(sys.argv) > 1:
-        main(int(sys.argv[1]))
+        main(float(sys.argv[1]))
     else:
         main(1)