Divide by zero when scanning an empty repo

Description

In my testing, I created a repo with a single failing file. Then, I deleted the file and re-scanned the repo. Result:

The problem is

long progress = (pageRequest.getStart() + MAX_FILES_TO_PROCESS) * 100L / totalBlobs;

Environment

None

Assignee

Andrey Levchenko

Reporter

George V @Mohami

Sprint

None

Labels

None

Github URL

None

Priority

Medium
Configure