Skip to content

Commit 9cfd167

Browse files
authored
fix so no leading comma in profile output (#158)
1 parent bb2c591 commit 9cfd167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nuTens/utils/instrumentation.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class ProfileWriter
116116
/// @param[in] result The result to write
117117
void writeProfile(const ProfileResult &result)
118118
{
119-
if (_profileCount++ > 0)
119+
if (_profileCount++ > 1)
120120
{
121121
_outputStream << ",";
122122
}

0 commit comments

Comments
 (0)