archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1484361 - /archiva/trunk/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/DefaultRepositoryStatisticsManager.java
Date Sun, 19 May 2013 22:26:08 GMT
Author: olamy
Date: Sun May 19 22:26:08 2013
New Revision: 1484361

URL: http://svn.apache.org/r1484361
Log:
add a FIXME comment

Modified:
    archiva/trunk/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/DefaultRepositoryStatisticsManager.java

Modified: archiva/trunk/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/DefaultRepositoryStatisticsManager.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/DefaultRepositoryStatisticsManager.java?rev=1484361&r1=1484360&r2=1484361&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/DefaultRepositoryStatisticsManager.java
(original)
+++ archiva/trunk/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/DefaultRepositoryStatisticsManager.java
Sun May 19 22:26:08 2013
@@ -151,6 +151,8 @@ public class DefaultRepositoryStatistics
 
         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 DefaultRepositoryStatistics
             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 );
     }



Mime
View raw message