Permalink
Browse files

Improve performance.

  • Loading branch information...
1 parent 7610346 commit 7c889f56eb5325dadecf53e2365a2fbb0a720130 @DaveDavenport committed Apr 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 EnergyPoint.vala
View
@@ -202,14 +202,14 @@ class EnergyStorage
EnergyPoint ep = EnergyPoint();
ep.time = new GLib.DateTime.from_unix_local(get_data_stmt.column_int64(0));
ep.power = get_data_stmt.column_int(1);
- eps.append(ep);
+ eps.prepend(ep);
break;
default:
stdout.printf ("Error: %d, %s\n", rc, db.errmsg ());
break;
}
} while (rc == Sqlite.ROW);
-
+ eps.reverse();
return eps;
}

0 comments on commit 7c889f5

Please sign in to comment.