@@ -96,7 +96,7 @@ def new
9696 # Try to find an existing quota record; nils will mean we fetch nothing
9797 @quota = model . where ( atts ) . first
9898
99- # If we haven't found an existing quota entry, we intialize a new one.
99+ # If we haven't found an existing quota entry, we initialize a new one.
100100 # It can contain nils for the attributes.
101101 @quota ||= model . new ( atts )
102102
@@ -218,7 +218,7 @@ def report_cpu_quotas
218218 . group ( :user_id , :remote_resource_id ) . sum ( :value )
219219 end
220220
221- # These two lamdas transform the hashes above into new hashes
221+ # These two lambdas transform the hashes above into new hashes
222222 # where the top level is a UID (user or bourreau) and the key is
223223 # a hash with a subset of the entries for each. It's darn complicated.
224224 # For help, try this in Ruby shell:
@@ -407,7 +407,7 @@ def guess_size_units(sizestring)
407407
408408 # Tries to turn strings like '2h' into 7200 (for 7200 seconds, etc).
409409 # Supported suffixes are s, h, d, m, w, and y (case insensitive).
410- # Minutes not supported because of the sad existance of months.
410+ # Minutes not supported because of the sad existence of months.
411411 def guess_time_units ( timestring )
412412 match = timestring . match ( /\A \s *(\d {1,4}(\. \d {1,2})?)\s *([shdwmy]?)\s *\z /i )
413413 return "" unless match # parsing error
0 commit comments