| | |
| | |
|
| | | // optionally (re)calculate repository sizes
|
| | | if (getBoolean(Keys.web.showRepositorySizes, true)) {
|
| | | ByteFormat byteFormat = new ByteFormat(); |
| | | msg = "{0} repositories identified with calculated folder sizes in {1} msecs";
|
| | | for (String repository : repositories) {
|
| | | RepositoryModel model = getRepositoryModel(repository);
|
| | | if (!model.skipSizeCalculation) {
|
| | | calculateSize(model);
|
| | | model.size = byteFormat.format(calculateSize(model)); |
| | | }
|
| | | }
|
| | | } else {
|
| | |
| | | }
|
| | |
|
| | | model.lastChange = JGitUtils.getLastChange(r);
|
| | | if (!model.skipSizeCalculation) { |
| | | ByteFormat byteFormat = new ByteFormat(); |
| | | model.size = byteFormat.format(calculateSize(model)); |
| | | } |
| | | }
|
| | | r.close();
|
| | |
|