From ba58990a0cc4fe39f974ac605bcd1ab3a8c829c1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 22 Apr 2017 16:08:05 +0300 Subject: Add timestamp to task response manifest session value --- mod/mod-build-task.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod/mod-build-task.cxx') 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&& p, const config_machine& cm) -> task_response_manifest { + uint64_t ts ( + chrono::duration_cast ( + 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"); -- cgit v1.1