Project

General

Profile

« Previous | Next » 

Revision 57549

String comparison for NULL equity

View differences:

DashboardServiceImpl.java
49 49
                    repositorySummaryInfo.setLogoURL(repository.getLogoUrl());
50 50

  
51 51
                    //TODO getRepositoryAggregations returns only the 20 more recent items. Is it positive that we will find an indexed version there?
52
                    long start = System.currentTimeMillis();
52 53
                    List<AggregationDetails> aggregationDetailsList = repositoryService.getRepositoryAggregations(repository.getId(),0,20);
53 54
                    for(AggregationDetails aggregationDetails: aggregationDetailsList) {
54 55
                        if(aggregationDetails.getIndexedVersion()) {
......
57 58
                            break;
58 59
                        }
59 60
                    }
61
                    long end = System.currentTimeMillis();
60 62

  
63
                    System.out.println("Got repo aggregations in "+ (end-start)+"ms");
64

  
61 65
                    try {
62 66

  
63 67
                        MetricsInfo metricsInfo = repositoryService.getMetricsInfoForRepository(repository.getId());

Also available in: Unified diff