Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

agentx

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agentx - npm Package Compare versions

Comparing version 1.7.2 to 1.7.3

17

lib/orders/system.js
'use strict';
var os = require('os');
var fs = require('fs');

@@ -26,2 +27,16 @@ var lastTotal = 0;

var getMemoryUsage = function () {
var raw = fs.readFileSync('/proc/meminfo');
var usage = raw.toString().trim().split('\n');
var real_free = 0;
usage.forEach(function(line) {
var pair = line.split(':');
if (['MemFree', 'Buffers', 'Cached'].indexOf(pair[0]) >= 0) {
real_free += parseInt(pair[1]);
}
});
return real_free * 1024;
}
var status = function () {

@@ -32,3 +47,3 @@ var loadavg = os.loadavg();

totalmem: os.totalmem(), // in byte
freemem: os.freemem(), // in byte
freemem: os.type() === 'Linux' ? getMemoryUsage() : os.freemem(), // in byte
load1: loadavg[0],

@@ -35,0 +50,0 @@ load5: loadavg[1],

2

package.json
{
"name": "agentx",
"version": "1.7.2",
"version": "1.7.3",
"description": "agentx is powered by alinode",

@@ -5,0 +5,0 @@ "scripts": {

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