mirror of
https://gitee.com/openeuler/A-Tune.git
synced 2025-12-06 08:08:59 +08:00
改变analysis中生成.csv 文件的生成路径,修复analysis启动失败
This commit is contained in:
@@ -560,7 +560,7 @@ func (s *ProfileServer) Analysis(message *PB.AnalysisMessage, stream PB.ProfileM
|
|||||||
apps := classApps.Result[0].Apps
|
apps := classApps.Result[0].Apps
|
||||||
_ = stream.Send(&PB.AckCheck{Name: fmt.Sprintf("\n 2. Current System Workload Characterization is %s", 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 {
|
if err != nil {
|
||||||
return fmt.Errorf("get log file path failed: %v", err)
|
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)
|
_ = pro.RollbackActive(ch)
|
||||||
|
|
||||||
logPath, err := utils.GetLogFilePath(config.DefaultTempPath)
|
logPath, err := utils.GetLogFilePath(config.DefaultCollectionPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("get log file path failed: %v", err)
|
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 := new(CollectorPost)
|
||||||
collectorBody.SampleNum = sampleNum
|
collectorBody.SampleNum = sampleNum
|
||||||
collectorBody.Monitors = monitors
|
collectorBody.Monitors = monitors
|
||||||
collectorBody.File = path.Join(config.DefaultTempPath, "test.csv")
|
collectorBody.File = path.Join(config.DefaultCollectionPath, "test.csv")
|
||||||
if npipe != "" {
|
if npipe != "" {
|
||||||
collectorBody.Pipe = npipe
|
collectorBody.Pipe = npipe
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user