~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/status_vars.cc

  • Committer: pcrews
  • Date: 2011-05-24 17:36:24 UTC
  • mfrom: (1099.4.232 drizzle)
  • Revision ID: pcrews@lucid32-20110524173624-mwr1bvq6fa1r01ao
Updated translations + 2011.05.18 tarball tag

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 * THE POSSIBILITY OF SUCH DAMAGE.
28
28
 */
29
29
 
30
 
#include "config.h"
 
30
#include <config.h>
31
31
#include <drizzled/plugin.h>
32
32
#include <drizzled/statistics_variables.h>
33
33
#include <drizzled/session.h>
109
109
  /* check bytes received if its lower then a flush has occurred */
110
110
  uint64_t current_bytes_received= current_status_var->bytes_received;
111
111
  uint64_t my_bytes_received= status_var_counters->bytes_received;
112
 
  if (current_bytes_received < my_bytes_received)
113
 
  {
114
 
    return true;
115
 
  }
116
 
  else 
117
 
  {
118
 
    return false;
119
 
  }
 
112
  return current_bytes_received < my_bytes_received;
120
113
}
121
114
 
122
115
void StatusVars::copyGlobalVariables(StatusVars *global_status_vars)