Skip to content

Commit

Permalink
Fix overflow of analytics_ttl in db handler, do not multiply by
Browse files Browse the repository at this point in the history
3600 in constructor since db handler get ttl from map already does it.
Closes-Bug: #1455282

Change-Id: I3943fddfa478a9cff218d8f6b81f1bfbe1c590ad
  • Loading branch information
Megh Bhatt committed May 15, 2015
1 parent e66ca37 commit a5a3bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analytics/db_handler.cc
Expand Up @@ -61,7 +61,7 @@ DbHandler::DbHandler(EventManager *evm,
analytics_ttl = 0;
}
dbif_.reset(GenDb::GenDbIf::GenDbIfImpl(err_handler,
cassandra_ips, cassandra_ports, analytics_ttl*3600, name, false));
cassandra_ips, cassandra_ports, analytics_ttl, name, false));

error_code error;
col_name_ = boost::asio::ip::host_name(error);
Expand Down

0 comments on commit a5a3bee

Please sign in to comment.