+ Map<String, TotalExecutionTime> results = res.getDateTotal();
+ StringBuilder csvline = new StringBuilder("");
+ if (0 < res.getDateTotal().size()) {
+ csvline.append("\'Date\',\'Total\',\'0-30 sec\',\'30-60 sec\',\'1-2 min\',\'2-10 min\',\'more 10 min\'%0A");
+ for (Map.Entry<String, TotalExecutionTime> entry : results.entrySet()) {
+ csvline.append("\'" + entry.getKey() + "\',\'" + entry.getValue().getTotal() + "\',\'" + entry.getValue().getTotal0_30s()
+ + "\',\'" + entry.getValue().getTotal30_60s() + "\',\'" + entry.getValue().getTotal1_2m() + "\',\'"
+ + entry.getValue().getTotal2_10m() + "\',\'" + entry.getValue().getTotal10m() + "\'%0A");
+ }
+ }
+ model.put("csvfile", csvline.toString());
+ model.put("ndays", res.getDateTotal().size() - 1);