Skip to content
Snippets Groups Projects
Commit 87ca4dba authored by Mohamed Alzayat's avatar Mohamed Alzayat
Browse files

typo fix

parent aa6bae98
Branches master
No related tags found
No related merge requests found
......@@ -483,13 +483,13 @@ function set_request_id($pubinput, $privinput)
$file_size = filesize($wgFileCacheDirectory.'/'.substr($hash,0,1).'/'.substr($hash,0,2).'/'.urlencode($privinput[$i]).'.html.gz');
#echo $file_size;
$cluster_name="";
if ($filesize <= 6000){
if (intval($file_size) <= 6000){
$cluster_name="small";
}
elseif ($filesize <= 9000){
elseif (intval($file_size) <= 9000){
$cluster_name="medium";
}
elseif ($filesize <= 12000){
elseif (intval($file_size) <= 12000){
$cluster_name="large";
}
else{
......@@ -499,6 +499,7 @@ function set_request_id($pubinput, $privinput)
#$pubhash[] = "1234567890abcdef";
#$public_input_hash[] = md5($pubinput[$i], True);
$public_input_hash[] = md5($cluster_name, True);
#echo md5($cluster_name);
#$pubhash[] = md5($client_public_input, True);
}else{
$public_input_hash[] = md5($pubinput[$i], True);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment