diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f3dfdd873..cc454f3cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,7 +35,10 @@ jobs: if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then TAGS="$TAGS --tag ${DOCKER_IMAGE}:latest" fi - + if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then + TAGS="$TAGS --tag ${DOCKER_IMAGE}:latest" + fi + echo ::set-output name=docker_image::${DOCKER_IMAGE} echo ::set-output name=version::${VERSION} echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \ diff --git a/trunk-recorder/call.cc b/trunk-recorder/call.cc index 56cc13c9d..549f91968 100644 --- a/trunk-recorder/call.cc +++ b/trunk-recorder/call.cc @@ -350,15 +350,15 @@ bool Call::update(TrunkMessage message) { } int Call::since_last_update() { - long last_rx; + /*long last_rx; if (get_recorder() && (last_rx = recorder->get_rx_status().last_update)) { BOOST_LOG_TRIVIAL(trace) << "temp.last_update: " << last_rx << " diff: " << time(NULL) - last_rx; return time(NULL) - last_rx; //last_update = temp.last_update; - } else { + } else {*/ BOOST_LOG_TRIVIAL(trace) << "last_update: " << last_update << " diff: " << time(NULL) - last_update; return time(NULL) - last_update; - } + //} } long Call::elapsed() {