diff --git a/collect.py b/collect.py index c761b49..8e56dd4 100644 --- a/collect.py +++ b/collect.py @@ -442,7 +442,7 @@ def main(): "15s", ] - gstatData = open("gstat.csv", "a") + gstatData = open("gstat.csv", "ab") gstatError = open("gstat.err", "a") # with as output_file: @@ -456,7 +456,6 @@ def main(): # # kill gstat if freebsd if is_freebsd(): process.terminate() - process.kill() gstatData.flush() gstatError.flush() @@ -469,7 +468,6 @@ def main(): # kill gstat if freebsd if is_freebsd(): process.terminate() - process.kill() gstatData.flush() gstatError.flush()