From d1f985c8191326292dd2ae5a85a63993ad68ddd7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 16 Sep 2024 10:27:52 -0700 Subject: It could use more testing, but...it works. --- src/tests/bigmyriad.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/tests') 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 @@ int main() { Bu::File f("big.myr", Bu::File::Read|Bu::File::Write|Bu::File::Create ); - Bu::Myriad m( f, 8, 12 ); + Bu::Myriad m( f, 256, 12 ); char *buf = new char[1024*1024*10]; - memset( buf, 0, 1024*1024*10 ); - for( int j = 0; j < 250; j++ ) + for( int j = 0; j < 25; j++ ) { -// m.openStream( m.createStream() ).write( buf, 1024*1024*10 ); -// m.sync(); -// printf("\r%03d%%", (j+1)*100/250 ); -// fflush( stdout ); + memset( buf, j, 1024*1024*10 ); + m.create( Bu::Myriad::Write ).write( buf, 1024*1024*10 ); +// m.sync(); + printf("\r%03d%%", (j+1)*100/25 ); + fflush( stdout ); } printf("\n\n"); -- cgit v1.2.3