Skip to content

Commit

Permalink
MQE: fix GOOS values in tools/benchmark-query-engine (#10120)
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskorn authored Dec 4, 2024
1 parent 832f589 commit 31c2f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/benchmark-query-engine/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ func (a *app) runTestCase(name string, printBenchmarkHeader bool) error {

func maxRSSInBytes(usage *syscall.Rusage) int64 {
switch runtime.GOOS {
case "Linux":
case "linux":
return usage.Maxrss * 1024 // Maxrss is returned in kilobytes on Linux.
case "Darwin":
case "darwin":
return usage.Maxrss // Maxrss is already in bytes on macOS.
default:
panic(fmt.Sprintf("unknown GOOS '%v'", runtime.GOOS))
Expand Down

0 comments on commit 31c2f19

Please sign in to comment.