~ubuntu-branches/ubuntu/precise/gnutls28/precise

« back to all changes in this revision

Viewing changes to src/benchmark.c

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-09-20 19:37:06 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20110920193706-a9phjijvddzg3nkl
Tags: 3.0.3-1
* New upstream version. (Includes a fix for #640639)
* Bump shlibs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    {
35
35
      *data = ((double) bytes) / 1000;
36
36
      *speed = *data / time;
37
 
      strcpy (metric, "Kb");
 
37
      strcpy (metric, "KB");
38
38
      return;
39
39
    }
40
40
  else if (bytes >= 1000 * 1000 && bytes < 1000 * 1000 * 1000)
41
41
    {
42
42
      *data = ((double) bytes) / (1000 * 1000);
43
43
      *speed = *data / time;
44
 
      strcpy (metric, "Mb");
 
44
      strcpy (metric, "MB");
45
45
      return;
46
46
    }
47
47
  else if (bytes >= 1000 * 1000 * 1000)
48
48
    {
49
49
      *data = ((double) bytes) / (1000 * 1000 * 1000);
50
50
      *speed = *data / time;
51
 
      strcpy (metric, "Gb");
 
51
      strcpy (metric, "GB");
52
52
      return;
53
53
    }
54
54
  else