Merge pull request #1157 from beautytiger/dev-191015-trim

fix string trim func usage in pse
This commit is contained in:
Derek Collison
2019-10-15 09:11:29 -07:00
committed by GitHub

View File

@@ -160,7 +160,7 @@ func getCounterArrayData(counter PDH_HCOUNTER) ([]float64, error) {
// the performance counter API.
func getProcessImageName() (name string) {
name = filepath.Base(os.Args[0])
name = strings.TrimRight(name, ".exe")
name = strings.TrimSuffix(name, ".exe")
return
}