docs: update wcl version

This commit is contained in:
debugtalk
2022-11-30 23:42:28 +08:00
parent 8affbe2e9c
commit 78349c717b
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ import (
var rootCmd = &cobra.Command{
Use: "wcl",
Short: "Monitor FIFA World Cup Live",
Version: "2022.11.27.2240",
Version: "2022.11.30.2341",
PreRun: func(cmd *cobra.Command, args []string) {
log.Logger = zerolog.New(
zerolog.ConsoleWriter{NoColor: false, Out: os.Stderr},

View File

@@ -98,7 +98,7 @@ type WorldCupLive struct {
EndTime string `json:"endTime"`
Interval int `json:"interval"` // seconds
Duration int `json:"duration"` // seconds
Summary []timeLog `json:"summary"`
Timelines []timeLog `json:"timelines"`
PerfData []string `json:"perfData"`
}
@@ -170,7 +170,7 @@ func (wc *WorldCupLive) getCurrentLiveTime(utcTime time.Time) error {
if _, err := wc.file.WriteString(line); err != nil {
log.Error().Err(err).Str("line", line).Msg("write timeseries failed")
}
wc.Summary = append(wc.Summary, timeLog{
wc.Timelines = append(wc.Timelines, timeLog{
UTCTimeStr: utcTimeStr,
UTCTime: utcTime.Unix(),
LiveTime: ocrText.Text,