Skip to content

Commit

Permalink
Replaced tab with commad for key value separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynatrace-Asad-Ali committed Apr 6, 2021
1 parent 8e9c65d commit 70c2d71
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (p *Processor) Process() error {

if (!p.Config.GroupByProcess) {
for key, pByLibrary := range processesByLibrary {
fmt.Printf(key + "\t")
fmt.Printf(key + ",")
for idx, value := range pByLibrary.ProcessInstanceNames {
fmt.Printf(value)
if (idx < len(pByLibrary.ProcessInstanceNames)-1) {
Expand All @@ -161,7 +161,7 @@ func (p *Processor) Process() error {
}
} else {
for key, lbyProcess := range librariesByProcess {
fmt.Printf(key + "\t")
fmt.Printf(key + ",")
for idx, value := range lbyProcess.LibraryNames {
fmt.Printf(value)
if (idx < len(lbyProcess.LibraryNames)-1) {
Expand Down Expand Up @@ -379,7 +379,9 @@ func (p *Processor) getProcessData(resp *http.Response) (string, error) {
log.Println(fmt.Sprintf(" id: %s", processEnvelope.DisplayName))

}
return processEnvelope.DisplayName, nil
pName := processEnvelope.DisplayName
pNameRep := strings.ReplaceAll(pName, "/", "\\/")
return pNameRep, nil
}

func (p *Processor) checkProcessCache(processId string) (string, bool) {
Expand Down

0 comments on commit 70c2d71

Please sign in to comment.