From: Olivier Lamy Date: Sun, 19 May 2013 22:26:08 +0000 (+0000) Subject: add a FIXME comment X-Git-Tag: archiva-1.4-M4~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=71dded175768d6949b2c4f9363049ffe52af320c;p=archiva.git add a FIXME comment git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1484361 13f79535-47bb-0310-9956-ffa450edef68 --- 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 ); }