diff options
author | Mike Buland <mike@xagasoft.com> | 2024-09-16 10:27:52 -0700 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2024-09-16 10:27:52 -0700 |
commit | d1f985c8191326292dd2ae5a85a63993ad68ddd7 (patch) | |
tree | 51d3f648936f28421bacc18c3bb0d4670b58259e /src/tests/bigmyriad.cpp | |
parent | 0886ad4f53deb8e148f87f77b9e7ff690c02b069 (diff) | |
download | libbu++-d1f985c8191326292dd2ae5a85a63993ad68ddd7.tar.gz libbu++-d1f985c8191326292dd2ae5a85a63993ad68ddd7.tar.bz2 libbu++-d1f985c8191326292dd2ae5a85a63993ad68ddd7.tar.xz libbu++-d1f985c8191326292dd2ae5a85a63993ad68ddd7.zip |
It could use more testing, but...it works.
Diffstat (limited to 'src/tests/bigmyriad.cpp')
-rw-r--r-- | src/tests/bigmyriad.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tests/bigmyriad.cpp b/src/tests/bigmyriad.cpp index 21c5ff2..9d24741 100644 --- a/src/tests/bigmyriad.cpp +++ b/src/tests/bigmyriad.cpp | |||
@@ -5,17 +5,17 @@ | |||
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, 8, 12 ); | 8 | Bu::Myriad m( f, 256, 12 ); |
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 ); | ||
12 | 11 | ||
13 | for( int j = 0; j < 250; j++ ) | 12 | for( int j = 0; j < 25; j++ ) |
14 | { | 13 | { |
15 | // m.openStream( m.createStream() ).write( buf, 1024*1024*10 ); | 14 | memset( buf, j, 1024*1024*10 ); |
16 | // m.sync(); | 15 | m.create( Bu::Myriad::Write ).write( buf, 1024*1024*10 ); |
17 | // printf("\r%03d%%", (j+1)*100/250 ); | 16 | // m.sync(); |
18 | // fflush( stdout ); | 17 | printf("\r%03d%%", (j+1)*100/25 ); |
18 | fflush( stdout ); | ||
19 | } | 19 | } |
20 | 20 | ||
21 | printf("\n\n"); | 21 | printf("\n\n"); |