From 8f8d30fae0d631936a85ccb9db74cfe6713326f3 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 26 May 2007 22:20:29 +0000 Subject: [PATCH] i just re-took 7th grade, helped a million --- test/perf/masseagerload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/perf/masseagerload.py b/test/perf/masseagerload.py index 01aa7cf9ed..d4076f5ba9 100644 --- a/test/perf/masseagerload.py +++ b/test/perf/masseagerload.py @@ -36,8 +36,8 @@ class LoadTest(AssertMixin): items.insert().execute(*l) for x in range(1, NUM/DIVISOR + 1): l = [] - for y in range(1, NUM/(NUM/DIVISOR) + 1): - z = ((x-1) * NUM/(NUM/DIVISOR)) + y + for y in range(1, DIVISOR + 1): + z = ((x-1) * DIVISOR) + y l.append({'sub_id':z,'value':'this is iteim #%d' % z, 'parent_id':x}) #print l subitems.insert().execute(*l) -- 2.47.3