mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 17:20:04 -06:00
Fix typos
This commit is contained in:
@@ -23,7 +23,7 @@ if ($index < count($tests)) {
|
||||
$test = $tests[$index];
|
||||
[$name,$size] = my_explode(':',$test);
|
||||
if (!$size) {
|
||||
$default = ($test==_var($_GET,'hash']));
|
||||
$default = ($test==_var($_GET,'hash'));
|
||||
if ($index>0) $test .= '|tail -1';
|
||||
if ($default) echo "<b>";
|
||||
echo preg_replace(['/^(# Tests.*\n)/','/\n$/'],["$1\n",""],shell_exec("/usr/sbin/cryptsetup benchmark -h $test"));
|
||||
|
||||
@@ -50,7 +50,7 @@ function removeKey($key,$disk) {
|
||||
}
|
||||
function diskname($name) {
|
||||
global $disks;
|
||||
foreach ($disks as $disk) if (strncmp($name,$disk['device'],strlen(disk['device']))==0) return $disk['name'];
|
||||
foreach ($disks as $disk) if (strncmp($name,$disk['device'],strlen($disk['device']))==0) return $disk['name'];
|
||||
return $name;
|
||||
}
|
||||
function reply($text,$type) {
|
||||
|
||||
Reference in New Issue
Block a user