You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/11/10 00:05:46 UTC
[skywalking-cli] 21/29: Redesign start end time when absent and
present
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-cli.git
commit 364978c8845371241f1823ecc6ae9f14220d94b0
Author: kezhenxu94 <ke...@163.com>
AuthorDate: Sat Nov 9 20:24:28 2019 +0800
Redesign start end time when absent and present
---
commands/interceptor/duration.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/interceptor/duration.go b/commands/interceptor/duration.go
index 1be9974..88468ec 100644
--- a/commands/interceptor/duration.go
+++ b/commands/interceptor/duration.go
@@ -96,7 +96,7 @@ func ParseDuration(start string, end string) (time.Time, time.Time, schema.Step)
if len(start) > 0 && len(end) > 0 {
start, end = AlignPrecision(start, end)
- if step, startTime, err = tryParseTime(start); err != nil {
+ if _, startTime, err = tryParseTime(start); err != nil {
logger.Log.Fatalln("Unsupported time format:", start, err)
}
if step, endTime, err = tryParseTime(end); err != nil {