~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/syslog/logging.cc

  • Committer: Brian Aker
  • Date: 2011-01-02 01:08:38 UTC
  • mfrom: (2045.1.2 clean)
  • Revision ID: brian@tangent.org-20110102010838-en7ctsg86t642hdz
Roll up of code around timer issues.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
  uint64_t t_mark= session->getCurrentTimestamp(false);
86
86
 
87
87
  // return if query was not too slow
88
 
  if ((t_mark - session->start_utime) < _threshold_slow)
 
88
  if (session->getElapsedTime() < _threshold_slow)
89
89
    return false;
90
90
  
91
91
  drizzled::Session::QueryString query_string(session->getQueryString());
109
109
         (int) drizzled::command_name[session->command].length,
110
110
         drizzled::command_name[session->command].str,
111
111
         (unsigned long long) (t_mark - session->getConnectMicroseconds()),
112
 
         (unsigned long long) (t_mark - session->start_utime),
 
112
         (unsigned long long) (session->getElapsedTime()),
113
113
         (unsigned long long) (t_mark - session->utime_after_lock),
114
114
         (unsigned long) session->sent_row_count,
115
115
         (unsigned long) session->examined_row_count,