From 3abb5d0d4e8df11ee5718d3ef2e56ddb399dd650 Mon Sep 17 00:00:00 2001 From: Zhao Chen Date: Wed, 6 May 2026 12:02:17 +0800 Subject: [PATCH] chore: update diagnostic package copyright headers Signed-off-by: Zhao Chen --- pkg/envinfo/cgroup_linux.go | 6 +++--- pkg/envinfo/cgroup_linux_test.go | 6 +++--- pkg/envinfo/cgroup_other.go | 6 +++--- pkg/envinfo/envinfo.go | 2 +- pkg/envinfo/envinfo_test.go | 2 +- pkg/iometrics/format.go | 2 +- pkg/iometrics/reader.go | 2 +- pkg/iometrics/tracker.go | 16 ++++++++-------- pkg/iometrics/tracker_test.go | 2 +- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/pkg/envinfo/cgroup_linux.go b/pkg/envinfo/cgroup_linux.go index da63ae10..42651463 100644 --- a/pkg/envinfo/cgroup_linux.go +++ b/pkg/envinfo/cgroup_linux.go @@ -1,5 +1,7 @@ +//go:build linux + /* - * Copyright 2024 The CNAI Authors + * Copyright 2024 The ModelPack Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,8 +16,6 @@ * limitations under the License. */ -//go:build linux - package envinfo import ( diff --git a/pkg/envinfo/cgroup_linux_test.go b/pkg/envinfo/cgroup_linux_test.go index 8c781022..e81f6652 100644 --- a/pkg/envinfo/cgroup_linux_test.go +++ b/pkg/envinfo/cgroup_linux_test.go @@ -1,5 +1,7 @@ +//go:build linux + /* - * Copyright 2024 The CNAI Authors + * Copyright 2024 The ModelPack Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,8 +16,6 @@ * limitations under the License. */ -//go:build linux - package envinfo import ( diff --git a/pkg/envinfo/cgroup_other.go b/pkg/envinfo/cgroup_other.go index 6ad7e885..4c4ab402 100644 --- a/pkg/envinfo/cgroup_other.go +++ b/pkg/envinfo/cgroup_other.go @@ -1,5 +1,7 @@ +//go:build !linux + /* - * Copyright 2024 The CNAI Authors + * Copyright 2024 The ModelPack Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,8 +16,6 @@ * limitations under the License. */ -//go:build !linux - package envinfo // logCgroupInfo is a no-op on non-Linux platforms. diff --git a/pkg/envinfo/envinfo.go b/pkg/envinfo/envinfo.go index 7f30a8fe..8d14ccba 100644 --- a/pkg/envinfo/envinfo.go +++ b/pkg/envinfo/envinfo.go @@ -1,5 +1,5 @@ /* - * Copyright 2024 The CNAI Authors + * Copyright 2024 The ModelPack Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/pkg/envinfo/envinfo_test.go b/pkg/envinfo/envinfo_test.go index c00e79cb..1ee03501 100644 --- a/pkg/envinfo/envinfo_test.go +++ b/pkg/envinfo/envinfo_test.go @@ -1,5 +1,5 @@ /* - * Copyright 2024 The CNAI Authors + * Copyright 2024 The ModelPack Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/pkg/iometrics/format.go b/pkg/iometrics/format.go index 4cb2fb57..46df3a7d 100644 --- a/pkg/iometrics/format.go +++ b/pkg/iometrics/format.go @@ -1,5 +1,5 @@ /* - * Copyright 2024 The CNAI Authors + * Copyright 2024 The ModelPack Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/pkg/iometrics/reader.go b/pkg/iometrics/reader.go index 249bc8f6..49fbf290 100644 --- a/pkg/iometrics/reader.go +++ b/pkg/iometrics/reader.go @@ -1,5 +1,5 @@ /* - * Copyright 2024 The CNAI Authors + * Copyright 2024 The ModelPack Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/pkg/iometrics/tracker.go b/pkg/iometrics/tracker.go index 4aaa2866..0a293aa6 100644 --- a/pkg/iometrics/tracker.go +++ b/pkg/iometrics/tracker.go @@ -1,5 +1,5 @@ /* - * Copyright 2024 The CNAI Authors + * Copyright 2024 The ModelPack Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -112,13 +112,13 @@ func (t *Tracker) Summary() { // Log structured fields to log file. logrus.WithFields(logrus.Fields{ - "operation": t.operation, - "totalBytes": humanize.IBytes(uint64(totalBytes)), - "wallClock": wallClock.Round(time.Millisecond).String(), - "effectiveThroughput": formatThroughput(totalBytes, wallClock), - t.sourceLabel(): sourceThroughput, - t.sinkLabel(): sinkThroughput, - "bottleneck": bottleneck, + "operation": t.operation, + "totalBytes": humanize.IBytes(uint64(totalBytes)), + "wallClock": wallClock.Round(time.Millisecond).String(), + "effectiveThroughput": formatThroughput(totalBytes, wallClock), + t.sourceLabel(): sourceThroughput, + t.sinkLabel(): sinkThroughput, + "bottleneck": bottleneck, }).Info("io throughput summary") // Print concise summary to terminal. diff --git a/pkg/iometrics/tracker_test.go b/pkg/iometrics/tracker_test.go index 5789b67f..031ba01f 100644 --- a/pkg/iometrics/tracker_test.go +++ b/pkg/iometrics/tracker_test.go @@ -1,5 +1,5 @@ /* - * Copyright 2024 The CNAI Authors + * Copyright 2024 The ModelPack Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.