Menu

#6 incorrect informativeText output format

v1.0 (example)
open
nobody
None
5
2016-05-06
2016-05-06
Chen Huajun
No

There's wrong code in jTPCC.java, which cause the output format of informativeText become incorrect.(I run it in Linux)

jTPCC.java:
for (int count = 0; count < 1+informativeText.length(); count++)

the above should be:
for (int count = 0; count < informativeText.length(); count++)

BTW:
I want to write a script to parse the output of runBenchmark.sh, but there is too many informativeText output if i redirect the stdout to a log file.
Could write the informativeText to stderr instead of stdout. As the following.

        System.err.print(informativeText);
        for (int count = 0; count < informativeText.length(); count++)
            System.err.print("\b");

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.