diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
commit | ec05778d5718a7912e506764d443a78d6a6179e3 (patch) | |
tree | 78a9a01532180030c095acefc45763f07c14edb8 /src/tests/bigmyriad.cpp | |
parent | b20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff) | |
download | libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2 libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip |
Converted tabs to spaces with tabconv.
Diffstat (limited to 'src/tests/bigmyriad.cpp')
-rw-r--r-- | src/tests/bigmyriad.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/tests/bigmyriad.cpp b/src/tests/bigmyriad.cpp index 6661bf1..9af301c 100644 --- a/src/tests/bigmyriad.cpp +++ b/src/tests/bigmyriad.cpp | |||
@@ -4,22 +4,22 @@ | |||
4 | 4 | ||
5 | int main() | 5 | int main() |
6 | { | 6 | { |
7 | Bu::File f("big.myr", Bu::File::Read|Bu::File::Write|Bu::File::Create ); | 7 | Bu::File f("big.myr", Bu::File::Read|Bu::File::Write|Bu::File::Create ); |
8 | Bu::Myriad m( f, 2048 ); | 8 | Bu::Myriad m( f, 2048 ); |
9 | 9 | ||
10 | char *buf = new char[1024*1024*10]; | 10 | char *buf = new char[1024*1024*10]; |
11 | memset( buf, 0, 1024*1024*10 ); | 11 | memset( buf, 0, 1024*1024*10 ); |
12 | 12 | ||
13 | for( int j = 0; j < 250; j++ ) | 13 | for( int j = 0; j < 250; j++ ) |
14 | { | 14 | { |
15 | m.openStream( m.createStream() ).write( buf, 1024*1024*10 ); | 15 | m.openStream( m.createStream() ).write( buf, 1024*1024*10 ); |
16 | // m.sync(); | 16 | // m.sync(); |
17 | printf("\r%03d%%", (j+1)*100/250 ); | 17 | printf("\r%03d%%", (j+1)*100/250 ); |
18 | fflush( stdout ); | 18 | fflush( stdout ); |
19 | } | 19 | } |
20 | 20 | ||
21 | printf("\n\n"); | 21 | printf("\n\n"); |
22 | 22 | ||
23 | return 0; | 23 | return 0; |
24 | } | 24 | } |
25 | 25 | ||