Skip to content

Commit

Permalink
Merge pull request #26308 from nextcloud/enhancement/timed-job-interv…
Browse files Browse the repository at this point in the history
…al-description

Document that the TimedJob interval is in seconds
  • Loading branch information
rullzer authored Mar 26, 2021
2 parents 9fd2917 + 389623a commit a75f0e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/public/BackgroundJob/TimedJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ abstract class TimedJob extends Job {
/**
* set the interval for the job
*
* @param int $seconds the time to pass between two runs of the same job in seconds
*
* @since 15.0.0
*/
public function setInterval(int $interval) {
$this->interval = $interval;
public function setInterval(int $seconds) {
$this->interval = $seconds;
}

/**
Expand Down

0 comments on commit a75f0e6

Please sign in to comment.