Comments (1)
diff --git a/src/memwatch.cc b/src/memwatch.cc
index 6ebed41..186887d 100644
--- a/src/memwatch.cc
+++ b/src/memwatch.cc
@@ -60,7 +60,7 @@ static struct
// the period from which this leak analysis starts
time_t leak_time_start;
// the base memory for the detection period
- time_t leak_base_start;
+ size_t leak_base_start;
// the number of consecutive compactions for which we've grown
unsigned int consecutive_growth;
} s_stats;
diff --git a/src/util.cc b/src/util.cc
index 81fcd88..b41a198 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -10,7 +10,7 @@
#include <stdlib.h> // abs()
std::string
-mw_util::niceSize(int bytes)
+mw_util::niceSize(size_t bytes)
{
std::stringstream ss;
diff --git a/src/util.hh b/src/util.hh
index c7a967b..987f303 100644
--- a/src/util.hh
+++ b/src/util.hh
@@ -7,7 +7,7 @@
namespace mw_util {
// given a size in bytes, return a human readable representation of the
// string
- std::string niceSize(int bytes);
+ std::string niceSize(size_t bytes);
// given a delta in seconds, return a human redable representation
std::string niceDelta(int seconds);
from node-memwatch.
Related Issues (20)
- discrepancy between 'pm2 monitor', 'top', and memwatch HOT 1
- can't install on node 8.x HOT 3
- Rename this repository to `memwatch-next`?
- No dump generated on Node 6.9.1 + BeanStalk
- Create Pre-builds
- Cannot install in Node 8.9.4
- Cannot install on node 10.0.0 HOT 6
- cannot install memwatch-next for node v8.x HOT 3
- Error installing it in the Docker alipine node 8.11.4 image HOT 3
- For those needing node 9.x+ support HOT 1
- Install failure on osx Mojave HOT 2
- cannot install on node v11.8.0 HOT 13
- spurious message on start
- Cannot install on node version 12.13.1 HOT 5
- Can't install on Node v13.6.0 with npm 6.13.4, 'Handle': is not member of 'v8' HOT 1
- Memory leaks issue
- Please mark as deprecated HOT 4
- cannot install on MacOS HOT 1
- not able to install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-memwatch.