summaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-12 18:17:47 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-12 18:17:47 +0100
commit258fc6e84ec0d8b5597c1b0ba1f37d8b20a01297 (patch)
tree654afb5e042c14276a5c6052e0d167a7b624e591 /cli.c
parent4be7a59b5a5253e90a299b56eb188c8b970c07b5 (diff)
downloadpcitool-258fc6e84ec0d8b5597c1b0ba1f37d8b20a01297.tar.gz
pcitool-258fc6e84ec0d8b5597c1b0ba1f37d8b20a01297.tar.bz2
pcitool-258fc6e84ec0d8b5597c1b0ba1f37d8b20a01297.tar.xz
pcitool-258fc6e84ec0d8b5597c1b0ba1f37d8b20a01297.zip
Fix errors preventing time-limited grabbing
Diffstat (limited to 'cli.c')
-rw-r--r--cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli.c b/cli.c
index 5fc3162..d7f36d0 100644
--- a/cli.c
+++ b/cli.c
@@ -2488,6 +2488,10 @@ int main(int argc, char **argv) {
if (run_time) timeout = PCILIB_TIMEOUT_INFINITE;
else timeout = PCILIB_EVENT_TIMEOUT;
}
+
+ if (!size_set) {
+ if (run_time) size = 0;
+ }
}
if (mode != MODE_GRAB) {