Skip to content

Commit

Permalink
Updated libcurl because michaelgrosner#158.
Browse files Browse the repository at this point in the history
Free Software Free Society

To support commits by ctubio,
you can buy-me-a-drink with a small git tip at:
  1GitTipgxvKB3zjCLXRcSgDhC9pivkpc7u

I promise to drink chocolate milk in the development of the next commit.

To request new features or in case this commit breaks something for you,
please create a new github issue with all possible details,
but never share your API Keys!

Signed-off-by: Carles Tubio <[email protected]>
  • Loading branch information
ctubio committed Aug 22, 2017
1 parent ee441f8 commit d9ad4a1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Binary file modified dist/lib/libK.so
Binary file not shown.
14 changes: 7 additions & 7 deletions src/lib/qp.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ namespace K {
};
static json onHand(json k) {
if (k["buySize"].get<double>() > 0
&& k["sellSize"].get<double>() > 0
&& k["buySizePercentage"].get<double>() > 0
&& k["sellSizePercentage"].get<double>() > 0
&& k["widthPing"].get<double>() > 0
&& k["widthPong"].get<double>() > 0
&& k["widthPingPercentage"].get<double>() > 0
&& k["widthPongPercentage"].get<double>() > 0
and k["sellSize"].get<double>() > 0
and k["buySizePercentage"].get<double>() > 0
and k["sellSizePercentage"].get<double>() > 0
and k["widthPing"].get<double>() > 0
and k["widthPong"].get<double>() > 0
and k["widthPingPercentage"].get<double>() > 0
and k["widthPongPercentage"].get<double>() > 0
) {
if ((mQuotingMode)k["mode"].get<int>() == mQuotingMode::Depth)
k["widthPercentage"] = false;
Expand Down
8 changes: 4 additions & 4 deletions src/lib/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace K {
static unsigned long uiDDT = 0;
static string uiNOTE = "";
static string uiNK64 = "";
static json app_state;
static json uiSTATE;
class UI {
public:
static void main(Local<Object> exports) {
Expand Down Expand Up @@ -154,15 +154,15 @@ namespace K {
time_t rawtime;
time(&rawtime);
struct stat st;
app_state = {
uiSTATE = {
{"memory", heapStatistics.total_heap_size()},
{"hour", localtime(&rawtime)->tm_hour},
{"freq", iOSR60 / 2},
{"dbsize", stat(dbFpath.data(), &st) != 0 ? 0 : st.st_size},
{"a", A()}
};
iOSR60 = 0;
uiSend(uiTXT::ApplicationState, app_state);
uiSend(uiTXT::ApplicationState, uiSTATE);
};
static void uiD(uv_timer_t *handle) {
Isolate* isolate = (Isolate*) handle->data;
Expand Down Expand Up @@ -193,7 +193,7 @@ namespace K {
uiDD(handle);
};
static json onSnapApp(json z) {
return { app_state };
return { uiSTATE };
};
static json onSnapNote(json z) {
return { uiNOTE };
Expand Down

0 comments on commit d9ad4a1

Please sign in to comment.