mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 05:40:42 +00:00 
			
		
		
		
	feat: bump github.com/prometheus/procfs to v0.0.2
This commit is contained in:
		
							
								
								
									
										14
									
								
								vendor/github.com/prometheus/procfs/buddyinfo.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								vendor/github.com/prometheus/procfs/buddyinfo.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -31,19 +31,9 @@ type BuddyInfo struct { | ||||
| 	Sizes []float64 | ||||
| } | ||||
|  | ||||
| // NewBuddyInfo reads the buddyinfo statistics. | ||||
| func NewBuddyInfo() ([]BuddyInfo, error) { | ||||
| 	fs, err := NewFS(DefaultMountPoint) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
|  | ||||
| 	return fs.NewBuddyInfo() | ||||
| } | ||||
|  | ||||
| // NewBuddyInfo reads the buddyinfo statistics from the specified `proc` filesystem. | ||||
| func (fs FS) NewBuddyInfo() ([]BuddyInfo, error) { | ||||
| 	file, err := os.Open(fs.Path("buddyinfo")) | ||||
| func (fs FS) BuddyInfo() ([]BuddyInfo, error) { | ||||
| 	file, err := os.Open(fs.proc.Path("buddyinfo")) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user