diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-02 21:31:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-02 21:31:25 +0000 |
commit | e940210d88f0aa021a8fc57abe20fe2ad98d0f74 (patch) | |
tree | 737fbe415497876a7d581cfbdeb5a1bd5c16ab93 /src/util | |
parent | 5b3155d781dd02cd930458d9f139f7493532a045 (diff) | |
download | gnunet-e940210d88f0aa021a8fc57abe20fe2ad98d0f74.tar.gz gnunet-e940210d88f0aa021a8fc57abe20fe2ad98d0f74.zip |
consistency
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/strings.c | 2 | ||||
-rw-r--r-- | src/util/test_strings.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/util/strings.c b/src/util/strings.c index ee8713328..2cdcd3cee 100644 --- a/src/util/strings.c +++ b/src/util/strings.c | |||
@@ -385,7 +385,7 @@ GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta) | |||
385 | } | 385 | } |
386 | } | 386 | } |
387 | } | 387 | } |
388 | GNUNET_asprintf (&ret, "%llu%s", dval, unit); | 388 | GNUNET_asprintf (&ret, "%llu %s", dval, unit); |
389 | return ret; | 389 | return ret; |
390 | } | 390 | } |
391 | 391 | ||
diff --git a/src/util/test_strings.c b/src/util/test_strings.c index 0c7c56bcd..49895a43a 100644 --- a/src/util/test_strings.c +++ b/src/util/test_strings.c | |||
@@ -38,28 +38,28 @@ check () | |||
38 | char *b; | 38 | char *b; |
39 | struct GNUNET_TIME_Absolute at; | 39 | struct GNUNET_TIME_Absolute at; |
40 | 40 | ||
41 | sprintf (buf, "4%s", _( /* size unit */ "b")); | 41 | sprintf (buf, "4 %s", _( /* size unit */ "b")); |
42 | b = GNUNET_STRINGS_byte_size_fancy (4); | 42 | b = GNUNET_STRINGS_byte_size_fancy (4); |
43 | WANT (buf, b); | 43 | WANT (buf, b); |
44 | sprintf (buf, "10%s", _( /* size unit */ "KiB")); | 44 | sprintf (buf, "10 %s", _( /* size unit */ "KiB")); |
45 | b = GNUNET_STRINGS_byte_size_fancy (10240); | 45 | b = GNUNET_STRINGS_byte_size_fancy (10240); |
46 | WANT (buf, b); | 46 | WANT (buf, b); |
47 | sprintf (buf, "10%s", _( /* size unit */ "TiB")); | 47 | sprintf (buf, "10 %s", _( /* size unit */ "TiB")); |
48 | b = GNUNET_STRINGS_byte_size_fancy (10240LL * 1024LL * 1024LL * 1024LL); | 48 | b = GNUNET_STRINGS_byte_size_fancy (10240LL * 1024LL * 1024LL * 1024LL); |
49 | WANT (buf, b); | 49 | WANT (buf, b); |
50 | sprintf (buf, "4%s", _( /* time unit */ "ms")); | 50 | sprintf (buf, "4 %s", _( /* time unit */ "ms")); |
51 | b = | 51 | b = |
52 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply | 52 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply |
53 | (GNUNET_TIME_UNIT_MILLISECONDS, | 53 | (GNUNET_TIME_UNIT_MILLISECONDS, |
54 | 4)); | 54 | 4)); |
55 | WANT (buf, b); | 55 | WANT (buf, b); |
56 | sprintf (buf, "7%s", _( /* time unit */ "s")); | 56 | sprintf (buf, "7 %s", _( /* time unit */ "s")); |
57 | b = | 57 | b = |
58 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply | 58 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply |
59 | (GNUNET_TIME_UNIT_MILLISECONDS, | 59 | (GNUNET_TIME_UNIT_MILLISECONDS, |
60 | 7 * 1000)); | 60 | 7 * 1000)); |
61 | WANT (buf, b); | 61 | WANT (buf, b); |
62 | sprintf (buf, "7%s", _( /* time unit */ "h")); | 62 | sprintf (buf, "7 %s", _( /* time unit */ "h")); |
63 | b = | 63 | b = |
64 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply | 64 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply |
65 | (GNUNET_TIME_UNIT_MILLISECONDS, | 65 | (GNUNET_TIME_UNIT_MILLISECONDS, |