mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 18:50:41 -07:00
Merge pull request #1157 from beautytiger/dev-191015-trim
fix string trim func usage in pse
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user