summaryrefslogtreecommitdiff
path: root/utils/rhrd-pool
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rhrd-pool')
-rwxr-xr-xutils/rhrd-pool8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/rhrd-pool b/utils/rhrd-pool
index 1534af6..dc85f94 100755
--- a/utils/rhrd-pool
+++ b/utils/rhrd-pool
@@ -58,8 +58,14 @@ sub show
print STDERR "$errorstring\n";
return 1;
}
+ my @carts = RHRD::rddb::get_musicpool_carts_used($ctx, $shortname);
+ if(!defined $carts[0] && defined $carts[1]) {
+ print STDERR "$carts[1]: $carts[2]";
+ return 1;
+ }
+
print $pool->{'TITLE'} . " (" . $pool->{'SHORTNAME'} . "):\n";
- print " group: " . $pool->{'GROUP'} . ", carts: " . $pool->{'LOW_CART'} . "-" . $pool->{'HIGH_CART'} . "\n"; # TODO print info about cart usage
+ print " group: " . $pool->{'GROUP'} . ", carts: " . $pool->{'LOW_CART'} . "-" . $pool->{'HIGH_CART'} . " (" . scalar(@carts) . " used)\n";
return 0;
}