From 71dded175768d6949b2c4f9363049ffe52af320c Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 19 May 2013 22:26:08 +0000 Subject: [PATCH] add a FIXME comment git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1484361 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/stats/DefaultRepositoryStatisticsManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/DefaultRepositoryStatisticsManager.java b/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/DefaultRepositoryStatisticsManager.java index c0ed85a16..e93405b55 100644 --- a/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/DefaultRepositoryStatisticsManager.java +++ b/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/DefaultRepositoryStatisticsManager.java @@ -151,6 +151,8 @@ public class DefaultRepositoryStatisticsManager long startGather = System.currentTimeMillis(); + // FIXME what about other implementations ? + if ( metadataRepository.canObtainAccess( Session.class ) ) { // TODO: this is currently very raw and susceptible to changes in content structure. Should we instead @@ -168,7 +170,7 @@ public class DefaultRepositoryStatisticsManager populateStatisticsFromRepositoryWalk( metadataRepository, repositoryId, repositoryStatistics ); } - log.info( "Gathering statistics executed in " + ( System.currentTimeMillis() - startGather ) + "ms" ); + log.info( "Gathering statistics executed in {} ms", ( System.currentTimeMillis() - startGather ) ); metadataRepository.addMetadataFacet( repositoryId, repositoryStatistics ); } -- 2.39.5