mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-28 16:47:01 +09:00
go1.16 (#14783)
This commit is contained in:
1 parent
030646eea4
commit
47f6a4ec3f
947 files changed
+26119
-7062
No files matched your search
+1
-1
@@ -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