Skip to content

Commit

Permalink
Adding typecasting to make compilation work under MAC build environment
Browse files Browse the repository at this point in the history
Signed-off-by: praveengt <praveen.gt@flipkart.com>
  • Loading branch information
praveengt committed Dec 19, 2020
1 parent 2906d39 commit a67700a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/driver/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ func (ns *node) NodeGetVolumeStats(
var usage []*csi.VolumeUsage
usage = append(usage, &csi.VolumeUsage{
Unit: csi.VolumeUsage_BYTES,
Total: int64(sfs.Blocks) * sfs.Bsize,
Used: int64(sfs.Blocks-sfs.Bfree) * sfs.Bsize,
Available: int64(sfs.Bavail) * sfs.Bsize,
Total: int64(sfs.Blocks) * int64(sfs.Bsize),
Used: int64(sfs.Blocks-sfs.Bfree) * int64(sfs.Bsize),
Available: int64(sfs.Bavail) * int64(sfs.Bsize),
})
usage = append(usage, &csi.VolumeUsage{
Unit: csi.VolumeUsage_INODES,
Expand Down

0 comments on commit a67700a

Please sign in to comment.