summaryrefslogtreecommitdiff
path: root/src/utilities/logger.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/utilities/logger.vala')
-rw-r--r--src/utilities/logger.vala9
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");