Skip to content

Commit

Permalink
Fixes bug with call update
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Oct 18, 2021
1 parent f2852b4 commit d48ab4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down
6 changes: 3 additions & 3 deletions trunk-recorder/call.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d48ab4b

Please sign in to comment.