File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def loop( # pylint: disable=too-many-return-statements
143
143
) -> bool : # pylint: disable=too-many-branches
144
144
"""Function that sends a line of the DuckyScript file over hid every time it is called"""
145
145
146
- now = time .monotonic_ns ()
146
+ now = time .monotonic ()
147
147
if now < self .wait_until :
148
148
return True
149
149
@@ -179,12 +179,12 @@ def loop( # pylint: disable=too-many-return-statements
179
179
180
180
if start in ("DEFAULT_DELAY" , "DEFAULTDELAY" ):
181
181
self .wait_until -= self .default_delay
182
- self .default_delay = int (words [1 ]) * 1000000
182
+ self .default_delay = int (words [1 ]) / 1000
183
183
self .wait_until += self .default_delay
184
184
return True
185
185
186
186
if start == "DELAY" :
187
- self .wait_until += int (words [1 ]) * 1000000
187
+ self .wait_until += int (words [1 ]) / 1000
188
188
return True
189
189
190
190
if start == "STRING" :
You can’t perform that action at this time.
0 commit comments