Skip to content

Commit

Permalink
Fix bug (Save CPU information)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpmachado committed Aug 25, 2016
1 parent 3e76897 commit 5d7d77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion INNUca.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def main():
utils.scriptVersionGit(version, os.getcwd(), script_path)

# Save CPU information
with open(os.path.join(outdir, 'cpu_information.' + time_str + '.cpu.txt')) as reader:
with open(os.path.join(outdir, 'cpu_information.' + time_str + '.cpu.txt'), 'wt') as reader:
command = ['cat', '/proc/cpuinfo']
run_successfully, stdout, stderr = utils.runCommandPopenCommunicate(command, False, None)
reader.write(stdout)
Expand Down

0 comments on commit 5d7d77e

Please sign in to comment.