lib/evertils/common/authentication.rb in evertils-common-0.3.2 vs lib/evertils/common/authentication.rb in evertils-common-0.3.3
- old
+ new
@@ -132,10 +132,10 @@
when 17
message = 'Operation denied because it is currently unsupported'
when 18
message = 'Operation denied because access to the corresponding object is prohibited in response to a take-down notice'
when 19
- minutes = (e.rateLimitDuration/60).to_i
+ minutes = (e.rateLimitDuration.to_i/60).to_i
message = "You are rate limited! Wait #{minutes} minutes"
end
Notify.warning(message)
exit(0)
\ No newline at end of file