Skip to content

Commit

Permalink
fix mem-profile/cpu-profile build
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Aizman <[email protected]>
  • Loading branch information
alex-aizman committed Apr 13, 2021
1 parent 4dd17b1 commit 8e029ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/aisnodeprofile/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"syscall"

"github.com/NVIDIA/aistore/ais"
"github.com/NVIDIA/aistore/cmn"
"github.com/NVIDIA/aistore/cmn/cos"
)

Expand All @@ -23,8 +24,8 @@ var (

// NOTE: these variables are set by ldflags
var (
version string
build string
build string
buildtime string
)

func main() {
Expand All @@ -47,7 +48,7 @@ func run() int {
defer pprof.StopCPUProfile()
}

exitCode := ais.Run(version, build)
exitCode := ais.Run(cmn.AIStoreSoftwareVersion+"."+build, buildtime)

if s := *memProfile; s != "" {
*memProfile = s + "." + strconv.Itoa(syscall.Getpid())
Expand Down

0 comments on commit 8e029ed

Please sign in to comment.