Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. parpar.js -n -O -d pow2 -r "'+red+'%" -s '+getPar2Blocksize(foldersize)+' -m '+str(ram)+'M -o "'+d+'" '+files+'
  2.  
  3. red is usually 5
  4. the blocksize is size dependent for me
  5. ram part can be removed
  6. d is the par2 filename
  7. files the list of files ...
  8.  
  9. def getPar2Blocksize(size):
  10. if size < 100 : pblock=str( 384000)
  11. elif size < 400 : pblock=str( 768000)
  12. elif size < 2000 : pblock=str( 1536000)
  13. elif size < 4000 : pblock=str( 2304000)
  14. elif size < 8000 : pblock=str( 3072000)
  15. elif size < 10000: pblock=str( 3840000)
  16. elif size < 12000: pblock=str( 4608000)
  17. elif size < 14000: pblock=str( 5376000)
  18. elif size < 18000: pblock=str( 6144000)
  19. elif size < 20000: pblock=str( 6912000)
  20. elif size < 40000: pblock=str( 7680000)
  21. else: pblock=str(15360000)
  22. return pblock
  23.  
  24. sizes are up to you
  25. input size is in MB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement