From 0fd89991d7d6b73e24ad3617e25ab4d2cf297c42 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 5 Dec 2021 16:44:10 +0800 Subject: [PATCH] stats size --- config.go | 3 +++ config.sample.json | 3 ++- version.go | 8 ++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config.go b/config.go index 21c066a..057eebc 100644 --- a/config.go +++ b/config.go @@ -4,6 +4,7 @@ import ( _ "embed" "encoding/json" "io/ioutil" + "log" "time" "github.com/tidwall/pretty" @@ -79,6 +80,8 @@ func (c *Config) Load(path string) error { return err } + log.Printf("Stats : %d", len(c.Stats)) + return c.Save(path) } diff --git a/config.sample.json b/config.sample.json index 414f2ec..be3eef8 100644 --- a/config.sample.json +++ b/config.sample.json @@ -14,5 +14,6 @@ "starting_allotment":6000000000000, "threshold":600000000000, "start_date":"2021-11-01T17:22:28+02:00" - } + }, + "stats":null } \ No newline at end of file diff --git a/version.go b/version.go index 1d42b95..cb01815 100644 --- a/version.go +++ b/version.go @@ -1,6 +1,6 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "e043820" -var buildstamp = "2021-12-05_08:19:58" -var commits = "225" -var version = "e043820-b225 - 2021-12-05_08:19:58" +var githash = "0c9ac03" +var buildstamp = "2021-12-05_08:43:45" +var commits = "226" +var version = "0c9ac03-b226 - 2021-12-05_08:43:45"