fixes #1098 make checksum computation block size configurable, and smaller by default

This commit is contained in:
plegall
2019-10-14 12:22:53 +02:00
parent 54b727a22a
commit ac5d00e89b
4 changed files with 9 additions and 1 deletions
@@ -420,7 +420,7 @@ jQuery('#sync_md5sum').click(function(e) {
var addBlockSize = Math.min(
Number((jQuery('#md5sum_to_add').data('origin') / 2).toFixed()),
1000
conf.checksum_compute_blocksize
);
add_md5sum_block(addBlockSize);
@@ -26,6 +26,10 @@ var lang = {
AreYouSure: "{'Are you sure?'|translate|escape:'javascript'}"
};
var conf = {
checksum_compute_blocksize: {$conf_checksum_compute_blocksize},
};
jQuery(document).ready(function() {
jQuery('.help-popin').colorbox({ width:"500px" });