Skip to content

Commit ba60a20

Browse files
authored
[codex] Update diagnostic package copyright headers (#535)
chore: update diagnostic package copyright headers Signed-off-by: Zhao Chen <winters.zc@antgroup.com>
1 parent 1d480de commit ba60a20

9 files changed

Lines changed: 22 additions & 22 deletions

File tree

pkg/envinfo/cgroup_linux.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
//go:build linux
2+
13
/*
2-
* Copyright 2024 The CNAI Authors
4+
* Copyright 2024 The ModelPack Authors
35
*
46
* Licensed under the Apache License, Version 2.0 (the "License");
57
* you may not use this file except in compliance with the License.
@@ -14,8 +16,6 @@
1416
* limitations under the License.
1517
*/
1618

17-
//go:build linux
18-
1919
package envinfo
2020

2121
import (

pkg/envinfo/cgroup_linux_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
//go:build linux
2+
13
/*
2-
* Copyright 2024 The CNAI Authors
4+
* Copyright 2024 The ModelPack Authors
35
*
46
* Licensed under the Apache License, Version 2.0 (the "License");
57
* you may not use this file except in compliance with the License.
@@ -14,8 +16,6 @@
1416
* limitations under the License.
1517
*/
1618

17-
//go:build linux
18-
1919
package envinfo
2020

2121
import (

pkg/envinfo/cgroup_other.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
//go:build !linux
2+
13
/*
2-
* Copyright 2024 The CNAI Authors
4+
* Copyright 2024 The ModelPack Authors
35
*
46
* Licensed under the Apache License, Version 2.0 (the "License");
57
* you may not use this file except in compliance with the License.
@@ -14,8 +16,6 @@
1416
* limitations under the License.
1517
*/
1618

17-
//go:build !linux
18-
1919
package envinfo
2020

2121
// logCgroupInfo is a no-op on non-Linux platforms.

pkg/envinfo/envinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 The CNAI Authors
2+
* Copyright 2024 The ModelPack Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

pkg/envinfo/envinfo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 The CNAI Authors
2+
* Copyright 2024 The ModelPack Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

pkg/iometrics/format.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 The CNAI Authors
2+
* Copyright 2024 The ModelPack Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

pkg/iometrics/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 The CNAI Authors
2+
* Copyright 2024 The ModelPack Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

pkg/iometrics/tracker.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 The CNAI Authors
2+
* Copyright 2024 The ModelPack Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -112,13 +112,13 @@ func (t *Tracker) Summary() {
112112

113113
// Log structured fields to log file.
114114
logrus.WithFields(logrus.Fields{
115-
"operation": t.operation,
116-
"totalBytes": humanize.IBytes(uint64(totalBytes)),
117-
"wallClock": wallClock.Round(time.Millisecond).String(),
118-
"effectiveThroughput": formatThroughput(totalBytes, wallClock),
119-
t.sourceLabel(): sourceThroughput,
120-
t.sinkLabel(): sinkThroughput,
121-
"bottleneck": bottleneck,
115+
"operation": t.operation,
116+
"totalBytes": humanize.IBytes(uint64(totalBytes)),
117+
"wallClock": wallClock.Round(time.Millisecond).String(),
118+
"effectiveThroughput": formatThroughput(totalBytes, wallClock),
119+
t.sourceLabel(): sourceThroughput,
120+
t.sinkLabel(): sinkThroughput,
121+
"bottleneck": bottleneck,
122122
}).Info("io throughput summary")
123123

124124
// Print concise summary to terminal.

pkg/iometrics/tracker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 The CNAI Authors
2+
* Copyright 2024 The ModelPack Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)