From 6a7a26360f4f34ad506846ff8c68c81f7dfbc61c Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Wed, 18 Sep 2019 04:51:39 +0300 Subject: [PATCH] messages fix --- src/http/server.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/http/server.c b/src/http/server.c index 7538b43..2ae4d44 100644 --- a/src/http/server.c +++ b/src/http/server.c @@ -807,13 +807,13 @@ static bool _expose_new_picture_unsafe(struct http_server_t *server) { ) { EXPOSED(expose_cmp_time) = get_now_monotonic(); EXPOSED(expose_end_time) = EXPOSED(expose_cmp_time); - LOG_VERBOSE("HTTP: dropped same frame number %u; cmp_time=%.06Lf", + LOG_VERBOSE("HTTP: Dropped same frame number %u; cmp_time=%.06Lf", EXPOSED(dropped), EXPOSED(expose_cmp_time) - EXPOSED(expose_begin_time)); EXPOSED(dropped) += 1; return false; // Not updated } else { EXPOSED(expose_cmp_time) = get_now_monotonic(); - LOG_VERBOSE("HTTP: passed same frame check (frames are differ); cmp_time=%.06Lf", + LOG_VERBOSE("HTTP: Passed same frame check (frames are differ); cmp_time=%.06Lf", EXPOSED(expose_cmp_time) - EXPOSED(expose_begin_time)); } } @@ -827,7 +827,7 @@ static bool _expose_new_picture_unsafe(struct http_server_t *server) { EXPOSED(expose_cmp_time) = EXPOSED(expose_begin_time); EXPOSED(expose_end_time) = get_now_monotonic(); - LOG_VERBOSE("HTTP: exposed new frame; full exposition time = %.06Lf", + LOG_VERBOSE("HTTP: Exposed new frame; full exposition time = %.06Lf", EXPOSED(expose_end_time) - EXPOSED(expose_begin_time)); # undef EXPOSED @@ -844,13 +844,13 @@ static bool _expose_blank_picture(struct http_server_t *server) { if (EXPOSED(online)) { // Если переходим из online в offline if (server->last_as_blank < 0) { // Если last_as_blank выключено, просто покажем картинку - LOG_INFO("HTTP: changed picture to BLANK"); + LOG_INFO("HTTP: Changed picture to BLANK"); EXPOSE_BLANK; } else if (server->last_as_blank > 0) { // Если нужен таймер - запустим - LOG_INFO("HTTP: freezing last alive frame for %d seconds", server->last_as_blank); + LOG_INFO("HTTP: Freezing last alive frame for %d seconds", server->last_as_blank); EXPOSED(last_as_blank_time) = get_now_monotonic(); } else { // last_as_blank == 0 - показываем последний фрейм вечно - LOG_INFO("HTTP: freezing last alive frame forever"); + LOG_INFO("HTTP: Freezing last alive frame forever"); } goto updated; } @@ -860,7 +860,7 @@ static bool _expose_blank_picture(struct http_server_t *server) { && EXPOSED(last_as_blank_time) > 0 && EXPOSED(last_as_blank_time) + server->last_as_blank < EXPOSED(expose_begin_time) ) { - LOG_INFO("HTTP: changed last alive frame to BLANK"); + LOG_INFO("HTTP: Changed last alive frame to BLANK"); EXPOSE_BLANK; EXPOSED(last_as_blank_time) = 0; // Останавливаем таймер goto updated; @@ -869,7 +869,7 @@ static bool _expose_blank_picture(struct http_server_t *server) { # undef EXPOSE_BLANK if (EXPOSED(dropped) < server->run->drop_same_frames_blank) { - LOG_PERF("HTTP: dropped same frame (BLANK) number %u", EXPOSED(dropped)); + LOG_PERF("HTTP: Dropped same frame (BLANK) number %u", EXPOSED(dropped)); EXPOSED(dropped) += 1; EXPOSED(expose_end_time) = get_now_monotonic(); return false; // Not updated