summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2023-11-25 15:17:33 +0900
committerRyo Nakamura <upa@haeena.net>2023-11-25 15:17:33 +0900
commit0cf3acee20f9b3f5c5961e754ab33c59b8dd4bb9 (patch)
tree5c9a7137dfada3a3eb2d0c8d4a06afc6035c7313 /src/path.c
parentc292ce2b29d641f8ab2bca374c0fa2764dbfe5bc (diff)
add -I interval option
-I INTERVAL option inserts sleep for interval (seconds) between SSH connection attempts (issue #7).
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index 254f8c3..7e9a06c 100644
--- a/src/path.c
+++ b/src/path.c
@@ -49,6 +49,10 @@ size_t chunk_pool_size(struct chunk_pool *cp)
return cp->count;
}
+bool chunk_pool_is_empty(struct chunk_pool *cp)
+{
+ return list_empty(&cp->list);
+}
struct chunk *chunk_pool_pop(struct chunk_pool *cp)
{
@@ -68,7 +72,7 @@ struct chunk *chunk_pool_pop(struct chunk_pool *cp)
}
LOCK_RELEASE();
- /* return CHUNK_POP_WAIT would be very rare case, because it
+ /* return CHUNK_POP_WAIT would be a rare case, because it
* means copying over SSH is faster than traversing
* local/remote file paths.
*/