mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
docs: update wcl version
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
|||||||
var rootCmd = &cobra.Command{
|
var rootCmd = &cobra.Command{
|
||||||
Use: "wcl",
|
Use: "wcl",
|
||||||
Short: "Monitor FIFA World Cup Live",
|
Short: "Monitor FIFA World Cup Live",
|
||||||
Version: "2022.11.27.2240",
|
Version: "2022.11.30.2341",
|
||||||
PreRun: func(cmd *cobra.Command, args []string) {
|
PreRun: func(cmd *cobra.Command, args []string) {
|
||||||
log.Logger = zerolog.New(
|
log.Logger = zerolog.New(
|
||||||
zerolog.ConsoleWriter{NoColor: false, Out: os.Stderr},
|
zerolog.ConsoleWriter{NoColor: false, Out: os.Stderr},
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ type WorldCupLive struct {
|
|||||||
EndTime string `json:"endTime"`
|
EndTime string `json:"endTime"`
|
||||||
Interval int `json:"interval"` // seconds
|
Interval int `json:"interval"` // seconds
|
||||||
Duration int `json:"duration"` // seconds
|
Duration int `json:"duration"` // seconds
|
||||||
Summary []timeLog `json:"summary"`
|
Timelines []timeLog `json:"timelines"`
|
||||||
PerfData []string `json:"perfData"`
|
PerfData []string `json:"perfData"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@ func (wc *WorldCupLive) getCurrentLiveTime(utcTime time.Time) error {
|
|||||||
if _, err := wc.file.WriteString(line); err != nil {
|
if _, err := wc.file.WriteString(line); err != nil {
|
||||||
log.Error().Err(err).Str("line", line).Msg("write timeseries failed")
|
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,
|
UTCTimeStr: utcTimeStr,
|
||||||
UTCTime: utcTime.Unix(),
|
UTCTime: utcTime.Unix(),
|
||||||
LiveTime: ocrText.Text,
|
LiveTime: ocrText.Text,
|
||||||
|
|||||||
Reference in New Issue
Block a user