cmd/syncthing: Refactor command line parsing (#7330)

This commit is contained in:
Jakob Borg
2021-02-10 20:35:37 +01:00
committed by GitHub
parent 0471daf771
commit 4f20c900d0
10 changed files with 278 additions and 321 deletions
+2 -4
View File
@@ -18,10 +18,8 @@ import (
"github.com/syncthing/syncthing/lib/protocol"
)
func init() {
if innerProcess && os.Getenv("STPERFSTATS") != "" {
go savePerfStats(fmt.Sprintf("perfstats-%d.csv", syscall.Getpid()))
}
func startPerfStats() {
go savePerfStats(fmt.Sprintf("perfstats-%d.csv", syscall.Getpid()))
}
func savePerfStats(file string) {