summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/pages/MetricsPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-06-02 22:40:23 -0400
committerJames Moger <james.moger@gitblit.com>2011-06-02 22:40:23 -0400
commita125cf6876e0edc5a2498df57a9df06d60b1f572 (patch)
tree7e0757213e7b69c7e97c0fe7ac4b7e2edfc41b81 /src/com/gitblit/wicket/pages/MetricsPage.java
parent793f76563d4bb3f58fa62ff53985e20561c6e330 (diff)
downloadgitblit-a125cf6876e0edc5a2498df57a9df06d60b1f572.tar.gz
gitblit-a125cf6876e0edc5a2498df57a9df06d60b1f572.zip
Unit testing. Start of git-notes display feature.
Diffstat (limited to 'src/com/gitblit/wicket/pages/MetricsPage.java')
-rw-r--r--src/com/gitblit/wicket/pages/MetricsPage.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/gitblit/wicket/pages/MetricsPage.java b/src/com/gitblit/wicket/pages/MetricsPage.java
index 2186ae37..c6231e9d 100644
--- a/src/com/gitblit/wicket/pages/MetricsPage.java
+++ b/src/com/gitblit/wicket/pages/MetricsPage.java
@@ -47,7 +47,7 @@ public class MetricsPage extends RepositoryPage {
public MetricsPage(PageParameters params) {
super(params);
Repository r = getRepository();
- insertLinePlot("commitsChart", MetricUtils.getDateMetrics(r, false));
+ insertLinePlot("commitsChart", MetricUtils.getDateMetrics(r, false, null));
insertBarPlot("dayOfWeekChart", getDayOfWeekMetrics(r));
insertLinePlot("timeOfDayChart", getTimeOfDayMetrics(r));
insertPieChart("authorsChart", getAuthorMetrics(r));
@@ -57,7 +57,7 @@ public class MetricsPage extends RepositoryPage {
if ((metrics != null) && (metrics.size() > 0)) {
IChartData data = WicketUtils.getChartData(metrics);
- ChartProvider provider = new ChartProvider(new Dimension(400, 100), ChartType.LINE,
+ ChartProvider provider = new ChartProvider(new Dimension(500, 100), ChartType.LINE,
data);
ChartAxis dateAxis = new ChartAxis(ChartAxisType.BOTTOM);
dateAxis.setLabels(new String[] { metrics.get(0).name,
@@ -82,7 +82,7 @@ public class MetricsPage extends RepositoryPage {
if ((metrics != null) && (metrics.size() > 0)) {
IChartData data = WicketUtils.getChartData(metrics);
- ChartProvider provider = new ChartProvider(new Dimension(400, 100),
+ ChartProvider provider = new ChartProvider(new Dimension(500, 100),
ChartType.BAR_VERTICAL_SET, data);
ChartAxis dateAxis = new ChartAxis(ChartAxisType.BOTTOM);
List<String> labels = new ArrayList<String>();
@@ -110,7 +110,7 @@ public class MetricsPage extends RepositoryPage {
for (Metric metric : metrics) {
labels.add(metric.name);
}
- ChartProvider provider = new ChartProvider(new Dimension(400, 200), ChartType.PIE, data);
+ ChartProvider provider = new ChartProvider(new Dimension(500, 200), ChartType.PIE, data);
provider.setPieLabels(labels.toArray(new String[labels.size()]));
add(new Chart(wicketId, provider));
} else {
@@ -164,7 +164,7 @@ public class MetricsPage extends RepositoryPage {
}
private List<Metric> getAuthorMetrics(Repository repository) {
- List<Metric> authors = MetricUtils.getAuthorMetrics(repository);
+ List<Metric> authors = MetricUtils.getAuthorMetrics(repository, true);
Collections.sort(authors, new Comparator<Metric>() {
@Override
public int compare(Metric o1, Metric o2) {