mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
tools/power turbostat: fix output buffering issue
In periodic mode, turbostat writes to stdout, but users were un-able to re-direct stdout, eg. turbostat > outputfile would result in an empty outputfile. Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
e52966c084
commit
ddac0d6872
1 changed files with 1 additions and 0 deletions
|
@ -423,6 +423,7 @@ done:
|
||||||
void flush_stdout()
|
void flush_stdout()
|
||||||
{
|
{
|
||||||
fputs(output_buffer, stdout);
|
fputs(output_buffer, stdout);
|
||||||
|
fflush(stdout);
|
||||||
outp = output_buffer;
|
outp = output_buffer;
|
||||||
}
|
}
|
||||||
void flush_stderr()
|
void flush_stderr()
|
||||||
|
|
Loading…
Add table
Reference in a new issue