Socket
Socket
Sign inDemoInstall

vtop

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vtop - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

16

app.js

@@ -157,3 +157,3 @@ /**

var dataPointsToKeep = 5000;
var dataPointsToKeep = 500;

@@ -165,3 +165,6 @@ charts[chartKey].values[position] = charts[chartKey].plugin.currentValue;

};
//console.log(charts[chartKey].values.length);
if (position > dataPointsToKeep) {
delete charts[chartKey].values[position - dataPointsToKeep];
}
for (var pos in charts[chartKey].values) {

@@ -171,6 +174,4 @@ var p = parseInt(pos, 10) + (chart.width - charts[chartKey].values.length);

// @todo: This is not be the best place to do this
if (pos > dataPointsToKeep) {
delete charts[chartKey].values[pos - dataPointsToKeep];
}
if (p > 0 && computeValue(charts[chartKey].values[pos]) > 0) {

@@ -305,2 +306,3 @@ c.set(p, computeValue(charts[chartKey].values[pos]));

upgradeNotice = v;
drawHeader();
});

@@ -311,3 +313,3 @@ }

// Check for updates every 5 minutes
setInterval(doCheck, 300000);
//setInterval(doCheck, 300000);

@@ -345,3 +347,3 @@ screen.on('keypress', function(ch, key) {

setInterval(drawHeader, 1000);
//setInterval(drawHeader, 1000);
drawFooter();

@@ -348,0 +350,0 @@

# Changelog
## 0.2.6
- Fix major perf problem that some users were having relating to
drawing the header for update notifications.
## 0.2.5

@@ -4,0 +9,0 @@

{
"name": "vtop",
"version": "0.2.5",
"version": "0.2.6",
"description": "Wow such top. So stats",

@@ -5,0 +5,0 @@ "homepage": "http://parall.ax/vtop",

@@ -23,3 +23,3 @@ /**

*/
interval: 100,
interval: 200,

@@ -26,0 +26,0 @@ currentValue: 0,

@@ -23,3 +23,3 @@ /**

*/
interval: 100,
interval: 200,

@@ -26,0 +26,0 @@ currentValue: 0,

@@ -49,3 +49,3 @@ /**

*/
poll: function() {
poll: function() {
var stats = {};

@@ -52,0 +52,0 @@ // @todo If you can think of a better way of getting process stats,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc