Removed wierd line

pull/114/head
Mokaddem 2017-04-18 15:57:07 +02:00
parent 3261eca836
commit 6e8509a0ba
1 changed files with 1 additions and 2 deletions

View File

@ -26,8 +26,7 @@ TIME_WAIT = 1.0 #sec
# return in bytes
def check_index_size(indexname):
global baseindexpath
the_index_name = indexname if indexname != "0" else "old_index"
the_index_name = join(baseindexpath, the_index_name)
the_index_name = join(baseindexpath, indexname)
cur_sum = 0
for root, dirs, files in os.walk(the_index_name):
cur_sum += sum(getsize(join(root, name)) for name in files)