2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-07 11:30:49 +00:00

Update global_debug.go

The variable was wrong and the CPU profile was never being created.
This commit is contained in:
Marcio Castilho 2017-05-17 11:07:33 -04:00 committed by GitHub
parent 4640d1a28e
commit 84f1037b8f

View File

@ -55,8 +55,8 @@ func runDebug() error {
if memProfilePath != "" {
prof = profile.Start(profile.Quiet, profile.MemProfile, profile.ProfilePath(memProfilePath))
} else if memProfilePath != "" {
prof = profile.Start(profile.Quiet, profile.CPUProfile, profile.ProfilePath(memProfilePath))
} else if cpuProfilePath != "" {
prof = profile.Start(profile.Quiet, profile.CPUProfile, profile.ProfilePath(cpuProfilePath))
}
if insecure {