Skip to content
Permalink
Browse files

fixes #1098 make checksum computation block size configurable, and sm…

…aller by default
  • Loading branch information...
plegall committed Oct 14, 2019
1 parent 54b727a commit ac5d00e89ba779936bc4393e35c5a3fbbd3f9ec0
@@ -458,6 +458,7 @@
$template->assign(
array(
'conf_checksum_compute_blocksize' => $conf['checksum_compute_blocksize'],
'prefilters' => $prefilters,
'filter' => $_SESSION['bulk_manager_filter'],
'selection' => $collection,
@@ -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" });
@@ -841,6 +841,9 @@
// unit mode. Must be among values {5, 10, 50}
$conf['batch_manager_images_per_page_unit'] = 5;
// how many missing md5sum should Piwigo compute at once.
$conf['checksum_compute_blocksize'] = 50;
// +-----------------------------------------------------------------------+
// | log |
// +-----------------------------------------------------------------------+

0 comments on commit ac5d00e

Please sign in to comment.
You can’t perform that action at this time.