| "._('Slots').": | ".cache_slots($off,$pool,_var($cache[$pool],'devicesSb'),_var($cache[$pool],'slots',0))."";
$zfsPool = strstr(_var($cache[$pool],'fsType'),'zfs') && !isSubpool($pool);
if ($zfsPool) {
- $current_subpools = array_filter($pools, function ($element) use ($pool) {
- return strpos($element, "$pool~")!==false;
- });
- if (count($current_subpools) < count($subpools)) {
- $current_subpools_list = str_replace("$pool~","", implode(',', $current_subpools));
- $subPoolButton = "";
- } else {
- $subPoolButton = "";
- }
- $echo[$n] .= " | $subPoolButton | | ";
+ $current_subpools = array_filter($pools, function($element) use ($pool,$_tilde_) {return strpos($element, "{$pool}{$_tilde_}")!==false;});
+ $current_subpools_list = str_replace("{$pool}{$_tilde_}","", implode(',', $current_subpools));
+ $echo[$n] .= "";
}
+ $echo[$n] .= " | |
";
} else {
foreach ($cache as $disk) if (prefix($disk['name'])==$pool) {
if (isset($disk['fsType'])) $fstype = vfs_type($disk['fsType']);
if (substr(_var($cache[$pool],'fsStatus'),0,11)=='Unmountable' && empty($disk['fsStatus'])) $disk['fsStatus'] = _var($cache[$pool],'fsStatus');
$echo[$n] .= array_online($disk,$fstype);
}
- delete_file($pool_log);
- if (_var($display,'total') && _var($cache[$pool],'devices',0)>1) $echo[$n] .= show_totals(sprintf(_('Pool of %s devices'),my_word($cache[$pool]['devices'])),false,"$pool*");
- $sum = initSum();
- }
+ if (strcmp($root,$pool)!=0) $cache[$root]['devices'] += $cache[$pool]['devices'];
+ if (strcmp($pool,$print)==0) {
+ delete_file($pool_log);
+ if (_var($display,'total') && _var($cache[$root],'devices',0)>1) $echo[$n] .= show_totals(sprintf(_('Pool of %s devices'),my_word($cache[$root]['devices'])),strpos($pool,$_tilde_)!==false,"$root*");
+ $sum = initSum();
+ }
+ }
$n++;
}
diff --git a/emhttp/plugins/dynamix/nchan/notify_poller b/emhttp/plugins/dynamix/nchan/notify_poller
index fe9cb4127..bdcfe1016 100755
--- a/emhttp/plugins/dynamix/nchan/notify_poller
+++ b/emhttp/plugins/dynamix/nchan/notify_poller
@@ -1,7 +1,7 @@
#!/usr/bin/php -q