diff --git a/src/cache.app.src b/src/cache.app.src index 9a3cb5a..6eea89b 100644 --- a/src/cache.app.src +++ b/src/cache.app.src @@ -1,7 +1,7 @@ {application, cache, [ {description, "in-memory cache"}, - {vsn, "0.9.0"}, + {vsn, "0.9.1"}, {modules, [ cache, cache_bucket, @@ -16,4 +16,4 @@ {mod, {cache_app, []}}, {env, []} ] -}. \ No newline at end of file +}. diff --git a/src/cache_bucket.erl b/src/cache_bucket.erl index 1933afb..f006f91 100644 --- a/src/cache_bucket.erl +++ b/src/cache_bucket.erl @@ -76,7 +76,7 @@ init([{policy, X} | T], #cache{}=S) -> init(T, S#cache{policy=X}); init([{memory, X} | Opts], S) -> - init(Opts, S#cache{memory=X div erlang:sysinfo(wordsize)}); + init(Opts, S#cache{memory=X div erlang:system_info(wordsize)}); init([{size, X} | Opts], S) -> init(Opts, S#cache{cardinality=X});