Skip to content

Commit a9d5dc7

Browse files
authored
Merge pull request #50 from Shpaky/v2.1.3
fix
2 parents 1a07990 + 3d06599 commit a9d5dc7

5 files changed

Lines changed: 3 additions & 4 deletions

File tree

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.2"},
3+
{vsn,"2.1.3"},
44
{modules,[
55
lfu_app,lfu_sup,lfu,
66
lfu_score_sups_sup,lfu_protocol,

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.2"}]
12+
{lfu, "2.1.3"}]
1313
}.

priv/lfu.tar.gz

48.2 MB
Binary file not shown.

src/lfu.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ common(cast,{cheat,KVL},[O,Q]) ->
268268
end,
269269
if
270270
I == (V-1) div ?MAX_LIMIT ->
271-
lfu_quick_score:cheat(N,K,1);
271+
lfu_quick_score:point(N,K);
272272
true -> skip
273273
end
274274
end

src/lfu_quick_score.erl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ point_handler(K,Q) ->
9595
put(K,1),
9696
Q+1;
9797
C ->
98-
put(K,C+1),
9998
Q
10099
end.
101100
cheat_handler(K,V,Q) ->

0 commit comments

Comments
 (0)