mirror of https://github.com/schoebel/mars
marsadm: new primitive resource-possible-size
This commit is contained in:
parent
30f2210db3
commit
6e6f044a25
|
@ -4694,6 +4694,9 @@ sub eval_fn {
|
|||
}
|
||||
return get_link($path, 1);
|
||||
}
|
||||
if (/^resource[-_]?possible[-_]?size$/) {
|
||||
return get_possible_size($$env{"cmd"}, $$env{"res"});
|
||||
}
|
||||
# time handling and pausing
|
||||
if (/^time$/) {
|
||||
return mars_time();
|
||||
|
@ -5504,6 +5507,8 @@ my %trivial_globs =
|
|||
=> "",
|
||||
"{disk,resource,device}-size"
|
||||
=> "",
|
||||
"resource-possible-size"
|
||||
=> "",
|
||||
"deletable-size"
|
||||
=> "",
|
||||
"occupied-size"
|
||||
|
|
Loading…
Reference in New Issue