summaryrefslogtreecommitdiff
path: root/lib/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/db.h')
-rw-r--r--lib/db.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/db.h b/lib/db.h
index 34a2a62..5f44c14 100644
--- a/lib/db.h
+++ b/lib/db.h
@@ -455,9 +455,9 @@ class cDbStatements
void append(cDbStatement* s) { statements.push_back(s); }
void remove(cDbStatement* s) { statements.remove(s); }
- void showStat()
+ void showStat(const char* name)
{
- tell(0, "Statement statistic of last %ld seconds:", statisticPeriod);
+ tell(0, "Statement statistic of last %ld seconds from '%s':", time(0) - statisticPeriod, name);
for (std::list<cDbStatement*>::iterator it = statements.begin() ; it != statements.end(); ++it)
{
@@ -756,7 +756,7 @@ class cDbConnection
int errorSql(cDbConnection* mysql, const char* prefix, MYSQL_STMT* stmt = 0, const char* stmtTxt = 0);
- void showStat() { statements.showStat(); }
+ void showStat(const char* name = "") { statements.showStat(name); }
static int init()
{