Skip to content

Commit 22e76ba

Browse files
authored
Merge pull request #58 from deer-wmde/fix-sleep-int-conversion
fix: Deprecation warning & float to int conversion
2 parents 994f57c + 83b9fe3 commit 22e76ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public_html/quickstatements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ public function getTemporaryBatchSummary () {
11161116
}
11171117

11181118
public function runSingleCommand ( $command ) {
1119-
if ( $this->sleep != 0 ) sleep ( $this->sleep ) ;
1119+
if ( $this->sleep != 0 ) sleep ( $this->usleep * 1000 ) ;
11201120
if ( !isset($command) ) return $this->commandError ( $command , "Empty command" ) ;
11211121
$command->status = 'working' ;
11221122
if ( isset($command->error) ) unset ( $command->error ) ;

0 commit comments

Comments
 (0)