Skip to content

Commit

Permalink
fix issue #161 - getCsvLineHeader & getCsvLine
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPitterling committed Nov 18, 2018
1 parent fe257da commit dae9eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/atomique/ksar/graph/Graph.java
Expand Up @@ -256,7 +256,7 @@ public String make_csv() {

public String getCsvHeader() {
StringBuilder tmp = new StringBuilder();
for (int i = 1 + firstDataColumn; i < HeaderStr.length; i++) {
for (int i = firstDataColumn; i < HeaderStr.length; i++) {
TimeSeries tmpseries = Stats.get(i - firstDataColumn);
tmp.append(graphtitle).append(" ").append(tmpseries.getKey());
tmp.append(";");
Expand All @@ -266,7 +266,7 @@ public String getCsvHeader() {

public String getCsvLine(RegularTimePeriod t) {
StringBuilder tmp = new StringBuilder();
for (int i = 1 + firstDataColumn; i < HeaderStr.length; i++) {
for (int i = firstDataColumn; i < HeaderStr.length; i++) {
TimeSeries tmpseries = Stats.get(i - firstDataColumn);
tmp.append(tmpseries.getValue(t));

Expand Down

0 comments on commit dae9eee

Please sign in to comment.