Skip to content

Commit deff485

Browse files
author
houyuxi
committed
feat: match minor version bigger equal than 2 for backward compatibility
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
1 parent 4237fa8 commit deff485

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/monitor/nvidia/v1/spec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func init() {
355355
type v1SemFactory struct{}
356356

357357
func (v1SemFactory) Match(h *nvidia.HeaderT, size int64) bool {
358-
return h.MajorVersion == 1 && h.MinorVersion == 2
358+
return h.MajorVersion == 1 && h.MinorVersion >= 2
359359
}
360360
func (v1SemFactory) Cast(data []byte) nvidia.UsageInfo { return CastSpecWithSemPostinit(data) }
361361
func (v1SemFactory) Name() string { return "v1-sem" }

0 commit comments

Comments
 (0)