~tangent-trunk/libmemcached/1.2

« back to all changes in this revision

Viewing changes to clients/memaslap.c

  • Committer: Continuous Integration
  • Date: 2013-10-10 21:49:40 UTC
  • mfrom: (1106.1.9 misc-memaslap-fixes)
  • Revision ID: ci@tangent.org-20131010214940-3jipjxxlblpsxs9y
Merge lp:~mwhudson/libmemcached/misc-memaslap-fixes Build: jenkins-Libmemcached-366

Show diffs side-by-side

added added

removed removed

Lines of Context:
753
753
 
754
754
  pos+= snprintf(pos,
755
755
                 sizeof(buf) - (size_t)(pos -buf),
756
 
                 "written_bytes: %lu\n",
757
 
                 (unsigned long) ms_stats.bytes_written);
 
756
                 "written_bytes: %llu\n",
 
757
                 (unsigned long long) ms_stats.bytes_written);
758
758
  pos+= snprintf(pos,
759
759
                 sizeof(buf) - (size_t)(pos -buf),
760
 
                 "read_bytes: %lu\n",
761
 
                 (unsigned long) ms_stats.bytes_read);
 
760
                 "read_bytes: %llu\n",
 
761
                 (unsigned long long) ms_stats.bytes_read);
762
762
  pos+= snprintf(pos,
763
763
                 sizeof(buf) - (size_t)(pos -buf),
764
764
                 "object_bytes: %lu\n",
799
799
                          ms_stats.bytes_written
800
800
                          + ms_stats.bytes_read) / 1024 / 1024
801
801
                 / ((double)time_diff / 1000000));
802
 
  assert(pos <= buf);
803
802
 
804
803
  fprintf(stdout, "%s", buf);
805
804
  fflush(stdout);