A bit shorter.
authorRoland Häder <haeder@hmmdeutschland.de>
Fri, 27 Jun 2014 13:49:01 +0000 (15:49 +0200)
committerRoland Häder <haeder@hmmdeutschland.de>
Fri, 27 Jun 2014 13:49:01 +0000 (15:49 +0200)
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
contrib/chash/chash.php

index f00c83917a14c90317f26a950cf93316f70222ed..779cc3e1f8c7a48a6833a86bf2351244a2a40565 100644 (file)
@@ -8,7 +8,7 @@ $GLOBALS['block_size']          = 100;
 $GLOBALS['none_increment']      = (1 / pow(10, 12));
 $GLOBALS['hash_algo']           = MHASH_RIPEMD320;
 $GLOBALS['flush_file_time']     = 10;
-$GLOBALS['restart_search_time'] = 3600 * 12;
+$GLOBALS['restart_search_time'] = 1800;
 
 // Hashes per call
 $GLOBALS['hash_cycles'] = 3;
@@ -190,7 +190,7 @@ function calculateSumFromHash ($hash) {
  */
 function calculateNonce () {
        // Linear incrementation
-       $GLOBALS['nonce'] = $GLOBALS['nonce'] + $GLOBALS['none_increment'];
+       $GLOBALS['nonce'] += $GLOBALS['none_increment'];
 }
 
 /**