stats size

This commit is contained in:
shoopea 2021-12-05 16:44:10 +08:00
parent 0c9ac03705
commit 0fd89991d7
3 changed files with 9 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import (
_ "embed" _ "embed"
"encoding/json" "encoding/json"
"io/ioutil" "io/ioutil"
"log"
"time" "time"
"github.com/tidwall/pretty" "github.com/tidwall/pretty"
@ -79,6 +80,8 @@ func (c *Config) Load(path string) error {
return err return err
} }
log.Printf("Stats : %d", len(c.Stats))
return c.Save(path) return c.Save(path)
} }

View File

@ -14,5 +14,6 @@
"starting_allotment":6000000000000, "starting_allotment":6000000000000,
"threshold":600000000000, "threshold":600000000000,
"start_date":"2021-11-01T17:22:28+02:00" "start_date":"2021-11-01T17:22:28+02:00"
} },
"stats":null
} }

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "e043820" var githash = "0c9ac03"
var buildstamp = "2021-12-05_08:19:58" var buildstamp = "2021-12-05_08:43:45"
var commits = "225" var commits = "226"
var version = "e043820-b225 - 2021-12-05_08:19:58" var version = "0c9ac03-b226 - 2021-12-05_08:43:45"