Changeset f1f93ffbb3b922663bf809d71755276dd1de14f0

Show
Ignore:
Timestamp:
12/30/09 03:18:31 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1262143111 +0000
git-parent:

[aaa42af67633892820876006049f47cc9f5d2a6b]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1262143111 +0000
Message:

Adds row counts to postgres and mysql checks, refs #228

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/mysql.c

    r3496ae7 rf1f93ff  
    103103    current.status = "got rows, ok"; 
    104104  } 
     105 
     106  noit_stats_set_metric(&current, "row_count", METRIC_INT32, &ci->rv); 
    105107 
    106108  if(ci->rv > 0) { 
  • src/modules/postgres.c

    r88a7178 rf1f93ff  
    125125    nrows = PQntuples(ci->result); 
    126126    ncols = PQnfields(ci->result); 
     127    noit_stats_set_metric(&current, "row_count", METRIC_INT32, &nrows); 
    127128    for (i=0; i<nrows; i++) { 
    128129      noitL(nldeb, "postgres: row %d [%d cols]:\n", i, ncols);