mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +08:00 
			
		
		
		
	The variables here are 64-bit on 64-bit builds, so the linter recommends stripping them. Unfortunately, they're 32-bit on 32-bit builds, so stripping them breaks that. Readd with a nolint to convince it to not break. Signed-off-by: Matthew Heon <mheon@redhat.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			215 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			215 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// +build linux
 | 
						|
 | 
						|
package ctime
 | 
						|
 | 
						|
import (
 | 
						|
	"os"
 | 
						|
	"syscall"
 | 
						|
	"time"
 | 
						|
)
 | 
						|
 | 
						|
func created(fi os.FileInfo) time.Time {
 | 
						|
	st := fi.Sys().(*syscall.Stat_t)
 | 
						|
	//nolint
 | 
						|
	return time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
 | 
						|
}
 |