Skip to content

Commit

Permalink
Merge pull request #920 from polarsignals/fix-percentage
Browse files Browse the repository at this point in the history
cmd/parquet-tool: Fix percentage calculation
  • Loading branch information
brancz authored Jul 24, 2024
2 parents defafee + 26a10df commit bd8afbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/parquet-tool/cmd/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func dump(file string) error {
humanize.Bytes(uint64(ds.MetaData.TotalCompressedSize)),
humanize.Bytes(uint64(ds.MetaData.TotalUncompressedSize)),
fmt.Sprintf("%.2f", float64(ds.MetaData.TotalUncompressedSize-ds.MetaData.TotalCompressedSize)/float64(ds.MetaData.TotalCompressedSize)*100),
fmt.Sprintf("%.2f", float64(ds.MetaData.TotalCompressedSize)/float64(rg.TotalByteSize)*100),
fmt.Sprintf("%.2f", float64(ds.MetaData.TotalUncompressedSize)/float64(rg.TotalByteSize)*100),
})
}
table.Render()
Expand Down

0 comments on commit bd8afbd

Please sign in to comment.