mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-27 22:46:01 -05:00
Small fix: correct duration in top-level display.
This commit is contained in:
parent
ad4beac464
commit
1928569540
@ -61,8 +61,7 @@ void WebInterface::HandleCameraList(evhttp_request *req, void *arg) {
|
|||||||
"<body>\n"
|
"<body>\n"
|
||||||
"<table>\n");
|
"<table>\n");
|
||||||
auto row_cb = [&](const ListCamerasRow &row) {
|
auto row_cb = [&](const ListCamerasRow &row) {
|
||||||
auto seconds =
|
auto seconds = row.total_duration_90k / kTimeUnitsPerSecond;
|
||||||
(row.max_end_time_90k - row.min_start_time_90k) / kTimeUnitsPerSecond;
|
|
||||||
std::string min_start_time_90k =
|
std::string min_start_time_90k =
|
||||||
row.min_start_time_90k == -1 ? std::string("n/a")
|
row.min_start_time_90k == -1 ? std::string("n/a")
|
||||||
: PrettyTimestamp(row.min_start_time_90k);
|
: PrettyTimestamp(row.min_start_time_90k);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user