Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
16
plugins/inputs/postfix/stat_ctim.go
Normal file
16
plugins/inputs/postfix/stat_ctim.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
//go:build dragonfly || linux || netbsd || openbsd || solaris
|
||||
|
||||
package postfix
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"time"
|
||||
)
|
||||
|
||||
func statCTime(sys interface{}) time.Time {
|
||||
stat, ok := sys.(*syscall.Stat_t)
|
||||
if !ok {
|
||||
return time.Time{}
|
||||
}
|
||||
return time.Unix(stat.Ctim.Unix())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue