Skip to content

Commit

Permalink
process: fix GetMappingFileLastModified (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gandem authored Jul 5, 2024
1 parent ab63ff6 commit c59c3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (sp *systemProcess) GetMappingFileLastModified(m *Mapping) int64 {
filename := sp.getMappingFile(m)
if filename != "" {
var st unix.Stat_t
if err := unix.Stat(filename, &st); err != nil {
if err := unix.Stat(filename, &st); err == nil {
return st.Mtim.Nano()
}
}
Expand Down

0 comments on commit c59c3c1

Please sign in to comment.