summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-05-09 11:17:21 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-05-09 11:25:16 +0200
commit1c4b5c63ca9c4464ac3f1b07c7f1c07ad690f582 (patch)
treeb82a28ec148f66a8333866002a6963f4bfb095e5 /src/other_tools/just_mr
parent3ddde7ba476d8dab4a8f18bf9fe00bc40f5b99ac (diff)
downloadjustbuild-1c4b5c63ca9c4464ac3f1b07c7f1c07ad690f582.tar.gz
invocation log: include seconds in directory name
The directory name is designed to allow an easy rough sorting by time. This can also be used to identify the latest build for a specific user. However, users often run several builds in a single minute; therefore, increase time-stamp precission to include seconds as well. While still lexicographic and chronological order will disagree, at least for a single user it will be correct most of the times.
Diffstat (limited to 'src/other_tools/just_mr')
-rw-r--r--src/other_tools/just_mr/launch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/other_tools/just_mr/launch.cpp b/src/other_tools/just_mr/launch.cpp
index dc861c11..7d2bdf25 100644
--- a/src/other_tools/just_mr/launch.cpp
+++ b/src/other_tools/just_mr/launch.cpp
@@ -284,7 +284,7 @@ auto CallJust(std::optional<std::filesystem::path> const& config_file,
}
std::string uuid = CreateUUID();
auto invocation_id = fmt::format(
- "{:%Y-%m-%d-%H:%M}-{}", fmt::gmtime(invocation_time), uuid);
+ "{:%Y-%m-%d-%H:%M:%S}-{}", fmt::gmtime(invocation_time), uuid);
dir = dir / invocation_id;
if (FileSystemManager::CreateDirectoryExclusive(dir)) {
if (invocation_log.invocation_msg) {