Skip to content

Commit

Permalink
Increase version to 0.1.7 and fix a bug in web server
Browse files Browse the repository at this point in the history
  • Loading branch information
joergen7 committed Apr 19, 2018
1 parent 147fa9e commit 57b7fbd
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ Although the CRE library can be imported also directly from GitHub, we recommend

#### rebar3

To integrate the CRE into a rebar3 managed project change the `deps` entry in your application's `rebar.config` file to include the tuple `{cre, "0.1.6"}`.
To integrate the CRE into a rebar3 managed project change the `deps` entry in your application's `rebar.config` file to include the tuple `{cre, "0.1.7"}`.

```erlang
{deps, [{cre, "0.1.6"}]}.
{deps, [{cre, "0.1.7"}]}.
```

#### mix

In an Elixir context, the CRE can be integrated into the project via mix.

```elixir
{:cre, "~> 0.1.6"}
{:cre, "~> 0.1.7"}
```

### Starting the CRE Master
Expand Down
4 changes: 2 additions & 2 deletions include/cre.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand All @@ -32,5 +32,5 @@
%% Definitions
%%====================================================================

-define( VSN, "0.1.6" ).
-define( VSN, "0.1.7" ).

2 changes: 1 addition & 1 deletion priv/default_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down
2 changes: 1 addition & 1 deletion priv/default_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down
2 changes: 1 addition & 1 deletion src/cre.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, cre,
[{description, "Common runtime environment for distributed programming languages"},
{vsn, "0.1.6"},
{vsn, "0.1.7"},
{mod, {cre, []}},
{registered, [cre]},
{applications, [
Expand Down
2 changes: 1 addition & 1 deletion src/cre.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down
2 changes: 1 addition & 1 deletion src/cre_cache_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down
2 changes: 1 addition & 1 deletion src/cre_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down
6 changes: 3 additions & 3 deletions src/cre_master.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down Expand Up @@ -365,8 +365,8 @@ handle_call( get_status, _From, CreState ) ->
G =
fun( Node, PLst ) ->
NWrk = length( PLst ),
NBusy = length( lists:filter( IsBusy, PLst ) ),
NodeLoad = NBusy/NWrk,
NodeNBusy = length( lists:filter( IsBusy, PLst ) ),
NodeLoad = NodeNBusy/NWrk,
#{ node => Node, n_wrk => NWrk, load => NodeLoad }
end,

Expand Down
2 changes: 1 addition & 1 deletion src/cre_status_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down
2 changes: 1 addition & 1 deletion src/cre_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down
2 changes: 1 addition & 1 deletion src/cre_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down
2 changes: 1 addition & 1 deletion test/cre_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down
2 changes: 1 addition & 1 deletion test/logic_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down
2 changes: 1 addition & 1 deletion test/logic_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%%
%% -------------------------------------------------------------------
%% @author Jörgen Brandt <joergen.brandt@onlinehome.de>
%% @version 0.1.6
%% @version 0.1.7
%% @copyright 2015-2018 Jörgen Brandt
%%
%%
Expand Down

0 comments on commit 57b7fbd

Please sign in to comment.