2
2
mirror of https://github.com/octoleo/restic.git synced 2024-09-27 22:19:02 +00:00

Merge pull request #968 from mcastilho/patch-2

Fixing CPUProfile
This commit is contained in:
Alexander Neumann 2017-05-17 21:13:42 +02:00
commit 69e114c5c4

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 {