~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/drizzle_protocol/net_serv.cc

  • Committer: Joe Daly
  • Date: 2010-05-19 01:22:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1546.
  • Revision ID: skinny.moey@gmail.com-20100519012229-2ir266syjpe811r3
add bytes_sent and bytes_received counters

Show diffs side-by-side

added added

removed removed

Lines of Context:
578
578
      break;
579
579
    }
580
580
    pos+=length;
 
581
    current_session->status_var.bytes_sent+= length;
581
582
  }
582
583
end:
583
584
  if ((net->compress) && (packet != NULL))
645
646
      }
646
647
      remain -= (uint32_t) length;
647
648
      pos+= length;
 
649
      current_session->status_var.bytes_received+= length;
648
650
    }
649
651
    if (i == 0)
650
652
    {                    /* First parts is packet length */