File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -950,12 +950,12 @@ function getapachemodules() {
950950
951951function tRNG (){
952952 global $ conf ;
953- $ path ='/dev/random ' ;$ test ='/tmp/ispconfig.tRNG ' ;$ time =8 ;$ warn =8192 ;
954- echo "Testing $ time seconds throughput of $ path ... " ;
953+ $ path ='/dev/random ' ;$ test ='/tmp/ispconfig.tRNG ' ;$ time =2 ;$ warn =8192 ;
954+ echo "Testing $ time seconds throughput of $ path ... " ;
955955 exec ("cat $ path > $ test & PID= \$!; sleep $ time; kill \$PID " );
956956 if (($ result =filesize ($ test )) < $ warn ) {
957- echo "\n[WARN] these services may fail: {$ conf ['tRNG ' ]}result: $ result bytes, minimum recommended: $ warn \n" ;
958- }else echo " OK \n" ;
957+ echo "$ result bytes \n[WARN] these services may fail: {$ conf ['tRNG ' ]}minimum recommended: $ warn \n" ;
958+ }else echo " $ result bytes: OK \n" ;
959959 unlink ($ test );
960960}
961961?>
You can’t perform that action at this time.
0 commit comments