You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/05/25 02:29:49 UTC

[skywalking-kubernetes-event-exporter] 01/01: Remove unused license and fix wrong timestamp

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch license
in repository https://gitbox.apache.org/repos/asf/skywalking-kubernetes-event-exporter.git

commit 2f5f8b5cbf1e354f71c38879e73f213e98726d63
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Tue May 25 10:28:09 2021 +0800

    Remove unused license and fix wrong timestamp
---
 licenses/LICENSE-linguist | 22 ----------------------
 pkg/exporter/console.go   |  2 +-
 2 files changed, 1 insertion(+), 23 deletions(-)

diff --git a/licenses/LICENSE-linguist b/licenses/LICENSE-linguist
deleted file mode 100644
index acc8e6f..0000000
--- a/licenses/LICENSE-linguist
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2017 GitHub, Inc.
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/pkg/exporter/console.go b/pkg/exporter/console.go
index c32fa27..0206da0 100644
--- a/pkg/exporter/console.go
+++ b/pkg/exporter/console.go
@@ -101,7 +101,7 @@ func (exporter *Console) Export(ctx context.Context, events chan *k8score.Event)
 				Type:      t,
 				Message:   kEvent.Message,
 				StartTime: kEvent.FirstTimestamp.UnixNano() / 1000000,
-				EndTime:   kEvent.LastTimestamp.Unix() / 1000000,
+				EndTime:   kEvent.LastTimestamp.UnixNano() / 1000000,
 			}
 			if exporter.config.Template != nil {
 				go func() {