mirror of https://github.com/CIRCL/AIL-framework
Removed wierd line
parent
3261eca836
commit
6e8509a0ba
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue