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 f00c839..779cc3e 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'];
 }
 
 /**