From 41657c92cd6c20b29d8f0111c3fd8a3368432598 Mon Sep 17 00:00:00 2001 From: "zhoupengcheng11@huawei.com" Date: Mon, 5 Feb 2024 21:08:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=8F=98analysis=E4=B8=AD=E7=94=9F?= =?UTF-8?q?=E6=88=90.csv=20=E6=96=87=E4=BB=B6=E7=9A=84=E7=94=9F=E6=88=90?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=EF=BC=8C=E4=BF=AE=E5=A4=8Danalysis=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/server/profile/profile.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/server/profile/profile.go b/modules/server/profile/profile.go index 479845f6..2ce0a470 100644 --- a/modules/server/profile/profile.go +++ b/modules/server/profile/profile.go @@ -560,7 +560,7 @@ func (s *ProfileServer) Analysis(message *PB.AnalysisMessage, stream PB.ProfileM apps := classApps.Result[0].Apps _ = stream.Send(&PB.AckCheck{Name: fmt.Sprintf("\n 2. Current System Workload Characterization is %s", apps)}) - logFile, err := utils.GetLogFilePath(config.DefaultTempPath) + logFile, err := utils.GetLogFilePath(config.DefaultCollectionPath) if err != nil { return fmt.Errorf("get log file path failed: %v", err) } @@ -670,7 +670,7 @@ func (s *ProfileServer) Analysis(message *PB.AnalysisMessage, stream PB.ProfileM _ = pro.RollbackActive(ch) - logPath, err := utils.GetLogFilePath(config.DefaultTempPath) + logPath, err := utils.GetLogFilePath(config.DefaultCollectionPath) if err != nil { return fmt.Errorf("get log file path failed: %v", err) } @@ -1506,7 +1506,7 @@ func (s *ProfileServer) collection(npipe string, time string) (*RespCollectorPos collectorBody := new(CollectorPost) collectorBody.SampleNum = sampleNum collectorBody.Monitors = monitors - collectorBody.File = path.Join(config.DefaultTempPath, "test.csv") + collectorBody.File = path.Join(config.DefaultCollectionPath, "test.csv") if npipe != "" { collectorBody.Pipe = npipe } -- Gitee