OSDN Git Service

Fixed a typo error.
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sun, 18 Feb 2007 01:54:07 +0000 (01:54 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sun, 18 Feb 2007 01:54:07 +0000 (01:54 +0000)
mk_rate

diff --git a/mk_rate b/mk_rate
index 1c48c18..07736ac 100755 (executable)
--- a/mk_rate
+++ b/mk_rate
@@ -531,12 +531,12 @@ end
 # Half-life effect
 # After NHAFE_LIFE days value will get half.
 # 0.693 is constant, where exp(0.693) ~ 0.5
-NHAFE_LIFE=60
+NHALF_LIFE=60
 def half_life(days)
   if days < 7
     return 1.0
   else
-    Math::exp(-0.693/NHALFE_LIFE*(days-7))
+    Math::exp(-0.693/NHALF_LIFE*(days-7))
   end
 end