diff options
author | Alessandro Ghedini <al3xbio@gmail.com> | 2012-05-20 20:01:22 +0200 |
---|---|---|
committer | Alessandro Ghedini <al3xbio@gmail.com> | 2012-05-20 20:01:22 +0200 |
commit | a095c29cd9cc8e4a43d79548bc57b870c6e90bfa (patch) | |
tree | daf6e98fbb58b7f78213e98d9291255c151d8671 /src/utilities/logger.vala | |
parent | b3977b8585efcd19a73e3bf7f25f41b01d9d4cae (diff) | |
parent | 87a5b11d7598fc1e5239e11972c5e03a38bbb672 (diff) |
Merge tag 'upstream/0.5.3'
Upstream version 0.5.3
Diffstat (limited to 'src/utilities/logger.vala')
-rw-r--r-- | src/utilities/logger.vala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utilities/logger.vala b/src/utilities/logger.vala index 5334920..116cbcd 100644 --- a/src/utilities/logger.vala +++ b/src/utilities/logger.vala @@ -107,6 +107,15 @@ public class Logger { /// Appends a line to the statistics file ///////////////////////////////////////////////////////////////////// + public static int get_statistics_size() { + if (stats_length == -1) { + var stats = GLib.FileStream.open(Paths.stats, "a"); + stats_length = (int)stats.tell(); + } + + return stats_length; + } + public static void stats(string line) { var stats = GLib.FileStream.open(Paths.stats, "a"); |