projects
/
php-bacula-disk-changer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2787b84
)
cant remember?
master
author
paulr
<me@pjr.cc>
Thu, 22 Jul 2010 23:57:44 +0000 (09:57 +1000)
committer
paulr
<me@pjr.cc>
Thu, 22 Jul 2010 23:57:44 +0000 (09:57 +1000)
bin/pbdc.php
patch
|
blob
|
history
diff --git
a/bin/pbdc.php
b/bin/pbdc.php
index
abc23ea
..
6649e0a
100644
(file)
--- a/
bin/pbdc.php
+++ b/
bin/pbdc.php
@@
-374,6
+374,8
@@
function add_disk()
$max = (int)($disk[$i]["size"]/$ts);
$kt = (int)(readline("No of tapes to create [max:$max] @ ".$ts."gb each:"));
+ if($kt == "") $kt = $max;
+ if($kt < 0) $kt = $max;
if($kt > $max) {
echo "Sorry, max number of tapes is $max, creating $max instead\n";
$kt = $max;