mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Update swagger to 0.20.1 (#8010)
* update swagger to 0.20.1 * fiw swagger version for validate
This commit is contained in:
		
							
								
								
									
										9
									
								
								vendor/github.com/prometheus/procfs/proc_stat.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								vendor/github.com/prometheus/procfs/proc_stat.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -105,7 +105,14 @@ type ProcStat struct { | ||||
| } | ||||
|  | ||||
| // NewStat returns the current status information of the process. | ||||
| // | ||||
| // Deprecated: use p.Stat() instead | ||||
| func (p Proc) NewStat() (ProcStat, error) { | ||||
| 	return p.Stat() | ||||
| } | ||||
|  | ||||
| // Stat returns the current status information of the process. | ||||
| func (p Proc) Stat() (ProcStat, error) { | ||||
| 	f, err := os.Open(p.path("stat")) | ||||
| 	if err != nil { | ||||
| 		return ProcStat{}, err | ||||
| @@ -178,7 +185,7 @@ func (s ProcStat) ResidentMemory() int { | ||||
| // StartTime returns the unix timestamp of the process in seconds. | ||||
| func (s ProcStat) StartTime() (float64, error) { | ||||
| 	fs := FS{proc: s.proc} | ||||
| 	stat, err := fs.NewStat() | ||||
| 	stat, err := fs.Stat() | ||||
| 	if err != nil { | ||||
| 		return 0, err | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Antoine GIRARD
					Antoine GIRARD