Merge branch 'issue-50'
This commit is contained in:
commit
e12d160aa9
@ -100,9 +100,11 @@ bool Browser::worker() {
|
|||||||
uint32_t last_seen =
|
uint32_t last_seen =
|
||||||
duration_cast<second_t>(steady_clock::now() - startup_).count();
|
duration_cast<second_t>(steady_clock::now() - startup_).count();
|
||||||
auto upd_source{*it};
|
auto upd_source{*it};
|
||||||
upd_source.announce_period = last_seen - upd_source.last_seen;
|
if ((last_seen - upd_source.last_seen) != 0) {
|
||||||
upd_source.last_seen = last_seen;
|
upd_source.announce_period = last_seen - upd_source.last_seen;
|
||||||
sources_.replace(it, upd_source);
|
upd_source.last_seen = last_seen;
|
||||||
|
sources_.replace(it, upd_source);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
BOOST_LOG_TRIVIAL(info) << "browser:: removing SAP source " << it->id
|
BOOST_LOG_TRIVIAL(info) << "browser:: removing SAP source " << it->id
|
||||||
<< " name " << it->name;
|
<< " name " << it->name;
|
||||||
|
@ -35,7 +35,7 @@ namespace po = boost::program_options;
|
|||||||
namespace postyle = boost::program_options::command_line_style;
|
namespace postyle = boost::program_options::command_line_style;
|
||||||
namespace logging = boost::log;
|
namespace logging = boost::log;
|
||||||
|
|
||||||
static std::string version("bondagit-1.2");
|
static std::string version("bondagit-1.3");
|
||||||
static std::atomic<bool> terminate = false;
|
static std::atomic<bool> terminate = false;
|
||||||
|
|
||||||
void termination_handler(int signum) {
|
void termination_handler(int signum) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user