Lines Matching refs:bytes
68 static int bytes_per_second; /* current speed in bytes per second */
86 format_rate(off_t bytes)
89 static char buf[STRING_SIZE(bytes) * 2 + 16];
91 bytes *= 100;
92 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++)
93 bytes = (bytes + 512) / 1024;
96 bytes = (bytes + 512) / 1024;
99 (long long) (bytes + 5) / 100,
100 (long long) (bytes + 5) / 10 % 10,
107 format_size(off_t bytes)
110 static char buf[STRING_SIZE(bytes) + 16];
112 for (i = 0; bytes >= 10000 && unit[i] != 'T'; i++)
113 bytes = (bytes + 512) / 1024;
115 (long long) bytes,