Changeset 30522

Show
Ignore:
Timestamp:
02/25/09 21:12:00 (4 years ago)
Author:
shunirr
Message:

lang/ruby/misc/socialskk/socialskk.rb fix cache bug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/misc/socialskk/socialskk.rb

    r30503 r30522  
    8888 
    8989  def search(kana) 
    90     if @cache[kana] and @cache[kana][:ctime] < (Time.now + @cache_time) 
     90    if @cache[kana] and Time.now < (@cache[kana][:ctime] + @cache_time) 
    9191      @cache[kana][:kanji] 
    9292    else