bin/czindexer in code_zauker-0.0.9 vs bin/czindexer in code_zauker-0.1.0

- old
+ new

@@ -1,11 +1,11 @@ #!/usr/bin/env ruby # Suggested execution is mixing find / xargs with the parallel (P) parameters: # find test/fixture/ -type f | xargs -P 5 -n 10 ./bin/czindexer # will fire 5 czindexer each with 10 files to process... require 'code_zauker/cli' -require 'redis/connection/hiredis' +#require 'redis/connection/hiredis' require 'redis' require 'optparse' options={} optparse= OptionParser.new do |opts| opts.banner="Usage: czindexer [options] [file1] [file2]..." @@ -84,10 +84,10 @@ #puts "Processing File #{l}" if options[:verbose] startTime=Time.now if options[:reindex] == true fs.reindex([l]) else - fs.load(l,noReload=true) + fs.load(l) end timeTaken=Time.now-startTime $PROCESSED_FILES+=1 $CUMULATED_TIME +=timeTaken $FILES_PER_SEC= $PROCESSED_FILES/$CUMULATED_TIME