]> arthur.barton.de Git - netdata.git/blobdiff - node.d/node_modules/netdata.js
fixes #369, SNMP 64 bit counters; plugins.d now accept SET = 0xHEXVALUE; node-int64...
[netdata.git] / node.d / node_modules / netdata.js
index f36a97b695d80136d7f928ae4533a5f6a27d00f0..6183993b5ba03898cca4e5e982e8fccf2551e922 100644 (file)
@@ -3,7 +3,6 @@
 var url = require('url');
 var http = require('http');
 var util = require('util');
-var Int64 = require('node-int64');
 
 /*
 var netdata = require('netdata');
@@ -341,10 +340,8 @@ var netdata = {
                                return false;
 
                        if(this._current_chart._dimensions_count !== 0) {
-                               if (value instanceof Buffer) {
-                                       var value64 = new Int64(value);
-                                       this.queue('SET ' + dimension + ' = ' + value64.toString(10));
-                               }
+                               if (value instanceof Buffer)
+                                       this.queue('SET ' + dimension + ' = 0x' + value.toString('hex'));
                                else
                                        this.queue('SET ' + dimension + ' = ' + value.toString());
                        }