diff options
Diffstat (limited to 'mod/mod-build-log.cxx')
-rw-r--r-- | mod/mod-build-log.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mod/mod-build-log.cxx b/mod/mod-build-log.cxx index b998f8d..a1e73ca 100644 --- a/mod/mod-build-log.cxx +++ b/mod/mod-build-log.cxx @@ -170,8 +170,8 @@ handle (request& rq, response& rs) // Make sure the build configuration still exists. // - auto i (build_conf_map_->find (id.configuration.c_str ())); - if (i == build_conf_map_->end ()) + if (build_conf_map_->find (id.configuration.c_str ()) == + build_conf_map_->end ()) config_expired ("no configuration"); // Make sure the package still exists. @@ -215,9 +215,8 @@ handle (request& rq, response& rs) << "config: " << b->configuration << endl << "machine: " << *b->machine << " (" << *b->machine_summary << ")" << endl - << "target: " << (i->second->target - ? i->second->target->string () - : "<default>") << endl + << "target: " << (b->target ? b->target->string () : "<default>") + << endl << "timestamp: "; butl::to_stream (os, b->timestamp, "%Y-%m-%d %H:%M:%S%[.N] %Z", true, true); |