Skip to content

Commit

Permalink
fix cross-compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Apr 30, 2023
1 parent b43660f commit a7cc2c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions receiver/filestatsreceiver/filestats_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func collectStats(now pcommon.Timestamp, fileinfo os.FileInfo, metricsBuilder *m
stat := fileinfo.Sys().(*syscall.Stat_t)
atime := stat.Atim.Sec
ctime := stat.Ctim.Sec
metricsBuilder.RecordFileAtimeDataPoint(now, atime)
metricsBuilder.RecordFileCtimeDataPoint(now, ctime, fileinfo.Mode().Perm().String())
//nolint
metricsBuilder.RecordFileAtimeDataPoint(now, int64(atime))
//nolint
metricsBuilder.RecordFileCtimeDataPoint(now, int64(ctime), fileinfo.Mode().Perm().String())
}

0 comments on commit a7cc2c4

Please sign in to comment.