mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	go1.16 (#14783)
This commit is contained in:
		
							
								
								
									
										2
									
								
								vendor/github.com/prometheus/procfs/proc_cgroup.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/prometheus/procfs/proc_cgroup.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -49,7 +49,7 @@ type Cgroup struct { | ||||
| func parseCgroupString(cgroupStr string) (*Cgroup, error) { | ||||
| 	var err error | ||||
|  | ||||
| 	fields := strings.Split(cgroupStr, ":") | ||||
| 	fields := strings.SplitN(cgroupStr, ":", 3) | ||||
| 	if len(fields) < 3 { | ||||
| 		return nil, fmt.Errorf("at least 3 fields required, found %d fields in cgroup string: %s", len(fields), cgroupStr) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 techknowlogick
					techknowlogick