Skip to content

Commit 3e0ff3b

Browse files
author
root
committed
tRNG test a little improved
1 parent 62aba30 commit 3e0ff3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/lib/install.lib.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -950,12 +950,12 @@ function getapachemodules() {
950950

951951
function 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
?>

0 commit comments

Comments
 (0)