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/09 14:13:16 UTC

[skywalking-cli] 22/25: Polish comments of duration

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 32df1785d83c7e103dfb4a03ac820a816fd7e1e4
Author: kezhenxu94 <ke...@163.com>
AuthorDate: Sat Nov 9 20:57:57 2019 +0800

    Polish comments of duration
---
 commands/interceptor/duration.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commands/interceptor/duration.go b/commands/interceptor/duration.go
index 88468ec..def8e20 100644
--- a/commands/interceptor/duration.go
+++ b/commands/interceptor/duration.go
@@ -73,8 +73,8 @@ func DurationInterceptor(ctx *cli.Context) error {
 
 // ParseDuration parses the `start` and `end` to a triplet, (startTime, endTime, step)
 // if --start and --end are both absent, then: start := now - 30min; end := now
-// if --start is given, --end is absent, then: end := now
-// if --start is absent, --end is given, then: start := end - 30min
+// if --start is given, --end is absent, then: end := now + 30 units, where unit is the precision of `start`, (hours, minutes, etc.)
+// if --start is absent, --end is given, then: start := end - 30 unis, where unit is the precision of `end`, (hours, minutes, etc.)
 // NOTE that when either(both) `start` or `end` is(are) given, there is no timezone info
 // in the format, (e.g. 2019-11-09 1001), so they'll be considered as UTC-based,
 // and generate the missing `start`(`end`) based on the same timezone, UTC