Skip to content

Commit f790b82

Browse files
committed
fix - few fix
1 parent a9d5dc7 commit f790b82

7 files changed

Lines changed: 7 additions & 8 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ max key size
153153
mkdir release
154154
tar -xf priv/lfu.tar.gz -C release/
155155

156-
cp priv/lfu.tar.gz release/.
157156
cp priv/init release/.
158157
cp priv/stop release/.
159158

include/lfu.hrl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
-ifdef(support).
5353
-define(SUPPORT,true).
54-
-define(AUXILIARY,kit).
54+
-define(AUXILIARY,any).
5555
-else.
5656
-define(SUPPORT,false).
5757
-define(AUXILIARY,any).

lfu.app

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{application,lfu,[
22
{description,"Least Frequently Used Algorithm"},
3-
{vsn,"2.1.3"},
3+
{vsn,"2.1.4"},
44
{modules,[
55
lfu_app,lfu_sup,lfu,
66
lfu_score_sups_sup,lfu_protocol,

lfu.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[{lfu,[
2-
{ets_dir,"priv"}, %% !!! must be atom string !!!!!
2+
{ets_dir,"priv"}, %% !!! must be string type !!!!!
33
{ets_sync_reset,true}, %% !!! must be atom type !!!!!
44
{ets_recovery,true}, %% !!! must be atom type !!!!!
55
{tcp,on}, %% !!! must be atom type !!!!!

priv/lfu.rel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
{crypto,"4.8"},
1010
{public_key,"1.9"},
1111
{asn1,"5.0.14"},
12-
{lfu, "2.1.3"}]
12+
{lfu, "2.1.4"}]
1313
}.

priv/lfu.tar.gz

-63 MB
Binary file not shown.

src/lfu.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,10 +796,10 @@ restorage(T) ->
796796
end,
797797
put(K,V),
798798
V > ?SCORE_OFFSET andalso put(quantity,get(quantity)+1),
799-
?SUPPORT andalso erlang:apply(?AUXILIARY,cheat,[[{K,V}]]);
799+
[];
800800
true ->
801-
?SUPPORT andalso erlang:apply(?AUXILIARY,cheat,[[{K,V}]])
802-
end,[]
801+
[]
802+
end
803803
end,
804804
[],T),
805805
erase(quantity).

0 commit comments

Comments
 (0)