Report usage statistics after transfer bench

This commit is contained in:
Jakob Borg
2015-04-30 08:43:57 +02:00
parent 9638dcda0a
commit c9da8237df
8 changed files with 51 additions and 41 deletions

View File

@@ -106,13 +106,13 @@ func (p *syncthingProcess) start() error {
}
}
func (p *syncthingProcess) stop() error {
func (p *syncthingProcess) stop() (*os.ProcessState, error) {
p.cmd.Process.Signal(os.Kill)
p.cmd.Wait()
fd, err := os.Open(p.logfd.Name())
if err != nil {
return err
return p.cmd.ProcessState, err
}
defer fd.Close()
@@ -148,7 +148,7 @@ func (p *syncthingProcess) stop() error {
}
}
}
return err
return p.cmd.ProcessState, err
}
func (p *syncthingProcess) get(path string) (*http.Response, error) {