diff options
author | Alessandro Ghedini <al3xbio@gmail.com> | 2012-05-20 20:01:21 +0200 |
---|---|---|
committer | Alessandro Ghedini <al3xbio@gmail.com> | 2012-05-20 20:01:21 +0200 |
commit | 87a5b11d7598fc1e5239e11972c5e03a38bbb672 (patch) | |
tree | cb14cf8d0ce50cac3bd909183f86710e6fa74056 /src/utilities/logger.vala | |
parent | 5cf585bfd897084175f1b8f8f0d8c1c27614f288 (diff) |
Imported Upstream version 0.5.3upstream/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"); |