Browse Source

Stats file added

Loweel 4 years ago
parent
commit
4756d8517f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      file.go

+ 3 - 1
file.go

@@ -56,8 +56,10 @@ func saveBayesToFile() {
 		tmpJSON = jerr.Error()
 	}
 
+	fmt.Println(time.Now().String())
+
 	Classifier.STATS.Range(func(key interface{}, value interface{}) bool {
-		fmt.Printf("%s : %d", key.(string), value.(int64))
+		fmt.Printf("%s : %d\n", key.(string), value.(int64))
 		return true
 	})