Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed Aug 21, 2024
1 parent 7fdca72 commit 74fa8bd
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 @@ -20,9 +20,9 @@ func (f *Factory) diskStatisticsUpdate() error {

// Using Bavail instead of Bfree to get non-priviledged user space available
//nolint: gosec // G115
f.metrics.ValueLogSpaceAvailable.Update(int64(valDirStatfs.Bavail) * valDirStatfs.Bsize)
f.metrics.ValueLogSpaceAvailable.Update(int64(valDirStatfs.Bavail) * int64(valDirStatfs.Bsize))
//nolint: gosec // G115
f.metrics.KeyLogSpaceAvailable.Update(int64(keyDirStatfs.Bavail) * keyDirStatfs.Bsize)
f.metrics.KeyLogSpaceAvailable.Update(int64(keyDirStatfs.Bavail) * int64(keyDirStatfs.Bsize))

/*
TODO If we wanted to clean up oldest data to free up diskspace, we need at a minimum an index to the StartTime
Expand Down

0 comments on commit 74fa8bd

Please sign in to comment.