protected function performGarbageCollection()
    {
        if ( ! config('cms-upload-module.gc.enabled', true)) {
            return;
        }

        list($probability, $total) = config('cms-upload-module.gc.lottery', [0, 0]);

        if ($probability < 1 || $total < 1 || rand(0, $total) > $probability) {
            return;
        }

        $this->fileRepository->cleanup();
    }