Skip to content

Commit

Permalink
Fix Test
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <[email protected]>
  • Loading branch information
mahadzaryab1 committed Sep 5, 2024
1 parent 34718ef commit a9e5e47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/storage/badger/stats_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ func (f *Factory) diskStatisticsUpdate() error {
// In case of ephemeral these are the same, but we'll report them separately for consistency
var keyDirStatfs unix.Statfs_t
// Error ignored to satisfy Codecov
_ = unix.Statfs(f.Options.GetPrimary().Directories.Keys, &keyDirStatfs)
_ = unix.Statfs(f.Config.Directories.Keys, &keyDirStatfs)

var valDirStatfs unix.Statfs_t
// Error ignored to satisfy Codecov
_ = unix.Statfs(f.Options.GetPrimary().Directories.Values, &valDirStatfs)
_ = unix.Statfs(f.Config.Directories.Values, &valDirStatfs)

// Using Bavail instead of Bfree to get non-priviledged user space available
//nolint: gosec // G115
Expand Down

0 comments on commit a9e5e47

Please sign in to comment.