Multi cache pool support

This commit is contained in:
bergware
2020-04-11 08:29:32 +02:00
parent 965c846c79
commit 5f40747823
+2 -2
View File
@@ -188,8 +188,8 @@ function day_count($time) {
function plus($val, $word, $last) {
return $val>0 ? (($val || $last) ? ($val.' '.$word.($val!=1?'s':'').($last ?'':', ')) : '') : '';
}
function truncate($name,$size=20) {
return strlen($name)<=$size ? $name : substr($name,0,$size-9).'...'.substr($name,-6);
function truncate($name,$size=20,$end=6) {
return strlen($name)<=$size ? $name : substr($name,0,$size-$end-3).'...'.substr($name,-$end);
}
function read_parity_log($epoch, $busy=false) {