Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use version 0 of 'protocol'

  • Loading branch information...
commit 40e3dca356644bf774f7940a25e3e12e9ffe6f03 1 parent 0b76757
@alk authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 example.escript
  2. +1 −1  sigar_port.c
View
4 example.escript
@@ -2,7 +2,7 @@
-export([main/1]).
unpack_data(Bin) ->
- <<Version:32/native-signed,
+ <<Version:32/native,
StructSize:32/native,
CPULocalMS:64/native,
CPUIdleMS:64/native,
@@ -15,7 +15,7 @@ unpack_data(Bin) ->
MemActualUsed:64/native,
MemActualFree:64/native>> = Bin,
StructSize = erlang:size(Bin),
- Version = -1,
+ Version = 0,
[{cpu_local_ms, CPULocalMS},
{cpu_idle_ms, CPUIdleMS},
{swap_total, SwapTotal},
View
2  sigar_port.c
@@ -39,7 +39,7 @@ int main(void)
if (req != 0)
break;
memset(&reply, 0, sizeof(reply));
- reply.version = (uint32_t)-1;
+ reply.version = 0;
reply.struct_size = sizeof(reply);
sigar_mem_get(sigar, &mem);
Please sign in to comment.
Something went wrong with that request. Please try again.