# arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
#
+2007-01-08 04:22:20 GMT Michael Poole <mdpoole@troilus.org> patch-80
+
+ Summary:
+ Skip reporting mondo db sections in ?stats databases.
+ Revision:
+ srvx--devo--1.3--patch-80
+
+ src/saxdb.c (cmd_stats_databases): Only show entries for databases that
+ have their own file; skip sections of "mondo".
+
+ modified files:
+ ChangeLog src/saxdb.c
+
+
2007-01-08 04:11:56 GMT Michael Poole <mdpoole@troilus.org> patch-79
Summary:
tbl.contents[0][4] = "Last Duration";
for (ii=1, it=dict_first(saxdbs); it; it=iter_next(it), ++ii) {
struct saxdb *db = iter_data(it);
+ if (db->mondo_section) {
+ --ii;
+ continue;
+ }
char *buf = malloc(INTERVALLEN*3);
tbl.contents[ii] = calloc(tbl.width, sizeof(tbl.contents[ii][0]));
tbl.contents[ii][0] = db->name;
tbl.contents[ii][3] = buf+INTERVALLEN;
tbl.contents[ii][4] = buf+INTERVALLEN*2;
}
+ tbl.length = ii;
table_send(cmd->parent->bot, user->nick, 0, 0, tbl);
free(tbl.contents[0]);
for (ii=1; ii<tbl.length; ++ii) {