This commit is contained in:
poiuty 2023-05-14 13:57:18 +03:00
parent 4b0b928cef
commit e42f70e789
3 changed files with 43 additions and 44 deletions

View file

@ -70,7 +70,7 @@ func saveDB() {
ticker := time.NewTicker(10 * time.Second)
defer ticker.Stop()
cleanCache := time.NewTicker(12 * time.Hour)
defer cleanCache.Stop()
@ -172,8 +172,8 @@ func saveDB() {
Chanel string `json:"chanel"`
Index int64 `json:"index"`
}{
Chanel: "chaturbate",
Index: index["tokens"] / int64(seconds) * 3600 / 1000 * 5 / 100,
Chanel: "chaturbate",
Index: index["tokens"] / int64(seconds) * 3600 / 1000 * 5 / 100,
})
if err == nil {
socketServer <- msg