From 19285695403d45139a069d02bb1511a8d9fd29d2 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Sun, 31 Jan 2016 21:17:20 -0800 Subject: [PATCH] Small fix: correct duration in top-level display. --- src/web.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/web.cc b/src/web.cc index 0206430..e16a9c2 100644 --- a/src/web.cc +++ b/src/web.cc @@ -61,8 +61,7 @@ void WebInterface::HandleCameraList(evhttp_request *req, void *arg) { "\n" "\n"); auto row_cb = [&](const ListCamerasRow &row) { - auto seconds = - (row.max_end_time_90k - row.min_start_time_90k) / kTimeUnitsPerSecond; + auto seconds = row.total_duration_90k / kTimeUnitsPerSecond; std::string min_start_time_90k = row.min_start_time_90k == -1 ? std::string("n/a") : PrettyTimestamp(row.min_start_time_90k);