diff --git a/inc/example.class.php b/inc/example.class.php index 882706d..9ba1f3c 100644 --- a/inc/example.class.php +++ b/inc/example.class.php @@ -119,7 +119,9 @@ class PluginExampleExample extends CommonDBTM { static function cronSample($task) { $task->log("Example log message from class"); - $task->setVolume(mt_rand(0,$task->fields['param'])); + $r = mt_rand(0,$task->fields['param']); + usleep(1000000+$r*1000); + $task->setVolume($r); return 1; }