mirror of
https://github.com/google/benchmark.git
synced 2024-12-26 12:30:14 +08:00
Fix header lines length (#752)
Commit 17a012d7
added a newline to the str, so the line built from
str.length() is one character longer than it should be.
This commit is contained in:
parent
eec9a8e497
commit
4b9f43e2c4
1
AUTHORS
1
AUTHORS
@ -9,6 +9,7 @@
|
||||
# Please keep the list sorted.
|
||||
|
||||
Albert Pretorius <pretoalb@gmail.com>
|
||||
Andriy Berestovskyy <berestovskyy@gmail.com>
|
||||
Arne Beer <arne@twobeer.de>
|
||||
Carto
|
||||
Christopher Seymour <chris.j.seymour@hotmail.com>
|
||||
|
@ -23,6 +23,7 @@
|
||||
# Please keep the list sorted.
|
||||
|
||||
Albert Pretorius <pretoalb@gmail.com>
|
||||
Andriy Berestovskyy <berestovskyy@gmail.com>
|
||||
Arne Beer <arne@twobeer.de>
|
||||
Billy Robert O'Neal III <billy.oneal@gmail.com> <bion@microsoft.com>
|
||||
Chris Kennelly <ckennelly@google.com> <ckennelly@ckennelly.com>
|
||||
|
@ -64,9 +64,8 @@ void ConsoleReporter::PrintHeader(const Run& run) {
|
||||
str += " UserCounters...";
|
||||
}
|
||||
}
|
||||
str += "\n";
|
||||
std::string line = std::string(str.length(), '-');
|
||||
GetOutputStream() << line << "\n" << str << line << "\n";
|
||||
GetOutputStream() << line << "\n" << str << "\n" << line << "\n";
|
||||
}
|
||||
|
||||
void ConsoleReporter::ReportRuns(const std::vector<Run>& reports) {
|
||||
|
Loading…
Reference in New Issue
Block a user