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
(cherry picked from commit a5a3bee)
  • Loading branch information
Megh Bhatt committed May 20, 2015
1 parent 02ad53b commit 675b163
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 675b163

Please sign in to comment.