From 3829caa2e99fcf28afe3004c367ce19ab86d2274 Mon Sep 17 00:00:00 2001
From: "Alan J. Pippin" <ajp@pippins.net>
Date: Sat, 17 Jan 2009 15:43:47 -0700
Subject: [PATCH] Fixed misnamed throttle opt var

---
 zfs-replicate | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/zfs-replicate b/zfs-replicate
index 84c8c5b..347bcbe 100755
--- a/zfs-replicate
+++ b/zfs-replicate
@@ -179,7 +179,7 @@ if [ $no_markers == 0 ]; then
   # Now it should be safe to send the snaps
   if [[ $throttle_enable == 1 && -e $throttle ]]; then
     ssh $remote $zfs send -R -I${previous_backup_marker} ${current_backup_marker} | 
-        $throttle $throttle_opts | $zfs receive -vF -d ${local_pool}/${remote_pool}
+        $throttle $throttle_opt | $zfs receive -vF -d ${local_pool}/${remote_pool}
   else 
     ssh $remote $zfs send -R -I${previous_backup_marker} ${current_backup_marker} |
         $zfs receive -vF -d ${local_pool}/${remote_pool}
@@ -204,7 +204,7 @@ else
     # We found a common snapshot, incrementally send the new snaps
     if [[ $throttle_enable == 1 && -e $throttle ]]; then
       ssh $remote $zfs send -R -I${common/*@/@} ${current_backup_marker} |
-          $throttle $throttle_opts | $zfs receive -vF -d ${local_pool}/${remote_pool}
+          $throttle $throttle_opt | $zfs receive -vF -d ${local_pool}/${remote_pool}
     else
       ssh $remote $zfs send -R -I${common/*@/@} ${current_backup_marker} |
           $zfs receive -vF -d ${local_pool}/${remote_pool}
@@ -232,7 +232,7 @@ else
     # Send the full filesystem
     if [[ $throttle_enable == 1 && -e $throttle ]]; then
       ssh $remote $zfs send -R ${current_backup_marker} |
-          $throttle $throttle_opts | $zfs receive -vF -d ${local_pool}/${remote_pool}
+          $throttle $throttle_opt | $zfs receive -vF -d ${local_pool}/${remote_pool}
     else
       ssh $remote $zfs send -R ${current_backup_marker} |
           $zfs receive -vF -d ${local_pool}/${remote_pool}
-- 
2.34.1