Skip to content
Snippets Groups Projects
Commit 7465f39e authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

predelano nastaveni jmena DB pomoci promenne z warden-server.conf

parent 0a64f73b
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ if ($WardenCommon::SYSLOG_VERBOSE == 1) { ...@@ -86,7 +86,7 @@ if ($WardenCommon::SYSLOG_VERBOSE == 1) {
# size of database events # size of database events
my $sth = $DBH->prepare("SELECT data_length + index_length FROM information_schema.TABLES WHERE table_schema = ? AND TABLE_NAME = ?") or die "Cannot prepare statement: " . $DBH->errstr; my $sth = $DBH->prepare("SELECT data_length + index_length FROM information_schema.TABLES WHERE table_schema = ? AND TABLE_NAME = ?") or die "Cannot prepare statement: " . $DBH->errstr;
$sth->execute('warden', 'events') or die "Cannot execute statement: " . $sth->errstr; $sth->execute($WardenCommon::DB_NAME, 'events') or die "Cannot execute statement: " . $sth->errstr;
my $size = $sth->fetchrow(); my $size = $sth->fetchrow();
my $db_size = defined $size ? Format::Human::Bytes::base10($size) : "none"; my $db_size = defined $size ? Format::Human::Bytes::base10($size) : "none";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment