Skip to content

Commit eeef561

Browse files
authored
Merge pull request #172 from entity-toolkit/1.3.2rc
Fixed a bug for output of floating point time
2 parents fdbc26a + f894d81 commit eeef561

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(PROJECT_NAME entity)
77

88
project(
99
${PROJECT_NAME}
10-
VERSION 1.3.0
10+
VERSION 1.3.2
1111
LANGUAGES CXX C)
1212
add_compile_options("-D ENTITY_VERSION=\"${PROJECT_VERSION}\"")
1313
set(hash_cmd "git diff --quiet src/ && echo $(git rev-parse HEAD) ")

src/framework/parameters.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,9 +1111,8 @@ namespace ntt {
11111111
CallOnce([&]() {
11121112
std::ofstream metadata;
11131113
metadata.open(path);
1114-
metadata << "[metadata]\n"
1115-
<< " time = " << time << "\n\n"
1116-
<< data() << std::endl;
1114+
metadata << fmt::format("[metadata]\n time = %f\n\n", time) << data()
1115+
<< std::endl;
11171116
metadata.close();
11181117
});
11191118
}

0 commit comments

Comments
 (0)