aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-task.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-22 16:08:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-22 16:09:16 +0300
commitba58990a0cc4fe39f974ac605bcd1ab3a8c829c1 (patch)
treedce39848240832b55677f4d935a665bc18d8c111 /mod/mod-build-task.cxx
parent0e6d08495733ed268e1624ca6450a0f4ecccac33 (diff)
Add timestamp to task response manifest session value
Diffstat (limited to 'mod/mod-build-task.cxx')
-rw-r--r--mod/mod-build-task.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/mod-build-task.cxx b/mod/mod-build-task.cxx
index 1466077..63ea327 100644
--- a/mod/mod-build-task.cxx
+++ b/mod/mod-build-task.cxx
@@ -149,8 +149,12 @@ handle (request& rq, response& rs)
shared_ptr<package>&& p,
const config_machine& cm) -> task_response_manifest
{
+ uint64_t ts (
+ chrono::duration_cast<std::chrono::nanoseconds> (
+ b->timestamp.time_since_epoch ()).count ());
+
string session (b->package_name + '/' + b->package_version.string () +
- '/' + b->configuration);
+ '/' + b->configuration + '/' + to_string (ts));
string result_url (options_->host () + options_->root ().string () +
"?build-result");