You are here

public function UltimateCronJob::formatProgress in Ultimate Cron 7.2

Format progress.

Parameters

float $progress: (optional) The progress to format. Uses the progress on the object if not specified.

Return value

string Formatted progress.

File

./ultimate_cron.job.inc, line 676
Job class for Ultimate Cron.

Class

UltimateCronJob
Class for handling cron jobs.

Code

public function formatProgress($progress = NULL) {
  if (!isset($progress)) {
    $progress = isset($this->progress) ? $this->progress : $this
      ->getProgress();
  }
  return $this
    ->getPlugin('launcher')
    ->formatProgress($this, $progress);
}