mirror of
https://github.com/minio/minio.git
synced 2025-02-27 05:19:16 -05:00
fix: remote profile names and extension (#9145)
Remote profiles are not formatted correctly: ``` profile-172.31.91.126_9000-cpu.pprof profile-172.31.91.126_9000-goroutines-before.txt profile-172.31.91.126_9000-goroutines.txt profiling-172.31.80.49_9000-cpu.pprof.pprof profiling-172.31.80.49_9000-goroutines-before.txt.pprof profiling-172.31.80.49_9000-goroutines.txt.pprof profiling-172.31.86.101_9000-cpu.pprof.pprof profiling-172.31.86.101_9000-goroutines-before.txt.pprof profiling-172.31.86.101_9000-goroutines.txt.pprof profiling-172.31.91.191_9000-cpu.pprof.pprof profiling-172.31.91.191_9000-goroutines-before.txt.pprof profiling-172.31.91.191_9000-goroutines.txt.pprof ``` `profiling` -> `profile`, remove extra extension.
This commit is contained in:
parent
7ec904d67b
commit
eeb5942b6b
@ -326,7 +326,7 @@ func (sys *NotificationSys) DownloadProfilingData(ctx context.Context, writer io
|
||||
for typ, data := range data {
|
||||
// Send profiling data to zip as file
|
||||
header, zerr := zip.FileInfoHeader(dummyFileInfo{
|
||||
name: fmt.Sprintf("profiling-%s-%s.pprof", client.host.String(), typ),
|
||||
name: fmt.Sprintf("profile-%s-%s", client.host.String(), typ),
|
||||
size: int64(len(data)),
|
||||
mode: 0600,
|
||||
modTime: UTCNow(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user