diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lru/lfu-simulation.c | 2 | ||||
-rw-r--r-- | utils/redis-sha1.rb | 2 | ||||
-rwxr-xr-x | utils/speed-regression.tcl | 2 | ||||
-rw-r--r-- | utils/srandmember/showfreq.rb | 2 | ||||
-rw-r--r-- | utils/tracking_collisions.c | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/utils/lru/lfu-simulation.c b/utils/lru/lfu-simulation.c index 6aa5911ac..51d639d66 100644 --- a/utils/lru/lfu-simulation.c +++ b/utils/lru/lfu-simulation.c @@ -30,7 +30,7 @@ uint16_t minutes_diff(uint16_t now, uint16_t prev) { return 65535-prev+now; } -/* Increment a couter logaritmically: the greatest is its value, the +/* Increment a counter logarithmically: the greatest is its value, the * less likely is that the counter is really incremented. * The maximum value of the counter is saturated at 255. */ uint8_t log_incr(uint8_t counter) { diff --git a/utils/redis-sha1.rb b/utils/redis-sha1.rb index 24498e25a..6a8b4f358 100644 --- a/utils/redis-sha1.rb +++ b/utils/redis-sha1.rb @@ -1,7 +1,7 @@ # redis-sha1.rb - Copyright (C) 2009 Salvatore Sanfilippo # BSD license, See the COPYING file for more information. # -# Performs the SHA1 sum of the whole datset. +# Performs the SHA1 sum of the whole dataset. # This is useful to spot bugs in persistence related code and to make sure # Slaves and Masters are in SYNC. # diff --git a/utils/speed-regression.tcl b/utils/speed-regression.tcl index 86a7d8d86..bf35c7db4 100755 --- a/utils/speed-regression.tcl +++ b/utils/speed-regression.tcl @@ -101,7 +101,7 @@ if {![file exists speed-regression.tcl]} { exit 1 } -# Make sure there is not already a server runnign on port 12123 +# Make sure there is not already a server running on port 12123 set is_not_running [catch {set r [redis 127.0.0.1 $::port]}] if {!$is_not_running} { puts "Sorry, you have a running server on port $::port" diff --git a/utils/srandmember/showfreq.rb b/utils/srandmember/showfreq.rb index fd47bc0ca..625519c5d 100644 --- a/utils/srandmember/showfreq.rb +++ b/utils/srandmember/showfreq.rb @@ -17,7 +17,7 @@ freq = {} } } -# Print the frequency each element was yeld to process it with gnuplot +# Print the frequency each element was yield to process it with gnuplot freq.each{|item,count| puts "#{item} #{count}" } diff --git a/utils/tracking_collisions.c b/utils/tracking_collisions.c index cd64b36c5..f52111173 100644 --- a/utils/tracking_collisions.c +++ b/utils/tracking_collisions.c @@ -1,4 +1,4 @@ -/* This is a small program used in order to understand the collison rate +/* This is a small program used in order to understand the collision rate * of CRC64 (ISO version) VS other stronger hashing functions in the context * of hashing keys for the Redis "tracking" feature (client side caching * assisted by the server). @@ -7,7 +7,7 @@ * * prefix:<counter> * - * And counts the resulting collisons generated in the 24 bits of output + * And counts the resulting collisions generated in the 24 bits of output * needed for the tracking feature invalidation table (16 millions + entries) * * Compile with: |