Small fix: correct duration in top-level display.

This commit is contained in:
Scott Lamb 2016-01-31 21:17:20 -08:00
parent ad4beac464
commit 1928569540
1 changed files with 1 additions and 2 deletions

View File

@ -61,8 +61,7 @@ void WebInterface::HandleCameraList(evhttp_request *req, void *arg) {
"<body>\n"
"<table>\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);