mirror of
https://github.com/restic/restic.git
synced 2025-08-22 02:51:05 +00:00
Update global_debug.go
The variable was wrong and the CPU profile was never being created.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user