Skip to content

Commit

Permalink
fix: report progress out of 100% in CleanRemoteFilesProcessorService (#…
Browse files Browse the repository at this point in the history
…13633)

* Report progress out of 100% in CleanRemoteFilesProcessorService

* Add changelog entry
  • Loading branch information
nilathedragon authored Mar 30, 2024
1 parent f90be42 commit f3500ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- Enhance: misskey-dev/summaly@5.1.0の取り込み(プレビュー生成処理の効率化)
- Fix: フォローリクエストを作成する際に既存のものは削除するように
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/440)
- Fix: CleanRemoteFilesProcessorService report progress from 100% (#13632)

## 2024.3.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class CleanRemoteFilesProcessorService {
isLink: false,
});

job.updateProgress(deletedCount / total);
job.updateProgress(100 / total * deletedCount);
}

this.logger.succ('All cached remote files has been deleted.');
Expand Down

0 comments on commit f3500ff

Please sign in to comment.