Skip to content

Commit

Permalink
fix node8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Wolff committed Apr 23, 2019
1 parent 4319952 commit 9655174
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "applicationinsights-native-metrics",
"description": "Native APM agent for the Application Insights Node.js SDK",
"version": "0.0.3",
"version": "0.0.4",
"contributors": [
{
"name": "Application Insights Developer Support",
Expand Down
2 changes: 1 addition & 1 deletion src/LoopProfiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace ai {

const uint64_t SEC_TO_MICRO = 1e6;
const uint64_t SEC_TO_MICRO = 1000000;

/**
* Get loop usage time in us
Expand Down
10 changes: 5 additions & 5 deletions src/Metric.hh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ class Metric {
auto resJson = Nan::New<v8::Object>();

Nan::Set(resJson, Nan::New("total").ToLocalChecked(),
Nan::New<v8::Number>(total()));
Nan::New<v8::Number>((double)total()));
Nan::Set(resJson, Nan::New("min").ToLocalChecked(),
Nan::New<v8::Number>(min()));
Nan::New<v8::Number>((double)min()));
Nan::Set(resJson, Nan::New("max").ToLocalChecked(),
Nan::New<v8::Number>(max()));
Nan::New<v8::Number>((double)max()));
Nan::Set(resJson, Nan::New("count").ToLocalChecked(),
Nan::New<v8::Number>(count()));
Nan::New<v8::Number>((double)count()));
Nan::Set(resJson, Nan::New("sumSquares").ToLocalChecked(),
Nan::New<v8::Number>(sumSquares()));
Nan::New<v8::Number>((double)sumSquares()));

return resJson;
}
Expand Down

0 comments on commit 9655174

Please sign in to comment.