mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-14 02:09:40 +08:00
docs: update wcl version
This commit is contained in:
@@ -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},
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user