File: 0005-fix-build-with-runc-rc93.patch

package info (click to toggle)
cadvisor 0.38.7%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,508 kB
  • sloc: ansic: 839; sh: 310; python: 101; makefile: 93
file content (38 lines) | stat: -rw-r--r-- 844 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Shengjing Zhu <zhsj@debian.org>
Date: Thu, 4 Feb 2021 16:52:29 +0800
Subject: fix build with runc rc93

---
 resctrl/collector.go | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/resctrl/collector.go b/resctrl/collector.go
index 210156a..f677b8d 100644
--- a/resctrl/collector.go
+++ b/resctrl/collector.go
@@ -26,19 +26,19 @@ import (
 )
 
 type collector struct {
-	resctrl intelrdt.IntelRdtManager
+	resctrl intelrdt.Manager
 	stats.NoopDestroy
 }
 
 func newCollector(id string, resctrlPath string) *collector {
 	collector := &collector{
-		resctrl: intelrdt.IntelRdtManager{
-			Config: &configs.Config{
+		resctrl: intelrdt.NewManager(
+			&configs.Config{
 				IntelRdt: &configs.IntelRdt{},
 			},
-			Id:   id,
-			Path: resctrlPath,
-		},
+			id,
+			resctrlPath,
+		),
 	}
 
 	return collector