Commit be7642e2 authored by Alexandra Rogova's avatar Alexandra Rogova

data update

parent ef48bdca
items,ramUsed,diskUsed items,ramUsed,diskUsed
1000,1581416858085 1000,1581418230888
2000,1581416858551 2000,1581418231741
3000,1581416859096 3000,1581418232622
4000,1581416859858 4000,1581418234146
5000,1581416860733 5000,1581418235083
6000,1581416861642 6000,1581418236215
7000,1581416862627 7000,1581418237023
8000,1581416863841 8000,1581418238087
9000,1581416864847 9000,1581418238928
10000,1581416866342 10000,1581418240180
11000,1581416868005 11000,1581418241333
12000,1581416869435 12000,1581418242421
13000,1581416871063 13000,1581418243988
14000,1581416872439 14000,1581418245495
15000,1581416874165 15000,1581418247146
16000,1581416875933 16000,1581418248660
17000,1581416877703 17000,1581418250429
18000,1581416879848 18000,1581418252206
19000,1581416882035 19000,1581418254155
20000,1581416884151 20000,1581418256310
21000,1581416886421 21000,1581418258202
22000,1581416888978 22000,1581418260868
23000,1581416891413 23000,1581418263242
24000,1581416893909 24000,1581418265687
25000,1581416896291 25000,1581418268139
26000,1581416898795 26000,1581418270609
27000,1581416902025 27000,1581418273373
28000,1581416904612 28000,1581418276178
29000,1581416907309 29000,1581418278825
30000,1581416910877 30000,1581418281905
31000,1581416915391 31000,1581418285003
32000,1581416918514 32000,1581418288853
33000,1581416921572 33000,1581418292914
34000,1581416925424 34000,1581418296143
35000,1581416929364 35000,1581418300904
36000,1581416934214 36000,1581418304135
37000,1581416937452 37000,1581418307720
38000,1581416942113 38000,1581418311910
39000,1581416946047 39000,1581418316347
40000,1581416950932 40000,1581418320960
41000,1581416956546 41000,1581418326402
42000,1581416961903 42000,1581418331817
43000,1581416967699 43000,1581418337009
44000,1581416973539 44000,1581418342202
45000,1581416981729 45000,1581418349019
46000,1581416988363 46000,1581418354796
47000,1581416994071 47000,1581418359626
48000,1581416999970 48000,1581418364965
49000,1581417005833 49000,1581418370921
50000,1581417012280 50000,1581418376274
51000,1581418382262
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,8 +2,8 @@ var os = require('os'); ...@@ -2,8 +2,8 @@ var os = require('os');
const fs = require("fs"); const fs = require("fs");
var diskspace = require("diskspace"); var diskspace = require("diskspace");
var max_ram;
var total_ram = os.totalmem(); var total_ram = os.totalmem();
var start_ram = total_ram - os.freemem();
var start_disk; var start_disk;
var stream = fs.createWriteStream("./results/add_csv_attachments_monitor.csv", {flags: "w+"}); var stream = fs.createWriteStream("./results/add_csv_attachments_monitor.csv", {flags: "w+"});
stream.write("time,disk,ram\n"); stream.write("time,disk,ram\n");
...@@ -24,8 +24,8 @@ stream.write("time,disk,ram\n"); ...@@ -24,8 +24,8 @@ stream.write("time,disk,ram\n");
var check = function(){ var check = function(){
setTimeout(function () { setTimeout(function () {
diskspace.check("C", function(err, result){ diskspace.check("C", function(err, result){
var ram_used = parseInt(result.used) - parseInt(start_disk); var disk_used = parseInt(result.used) - parseInt(start_disk);
var disk_used = total_ram - os.freemem(); var ram_used = total_ram - os.freemem() - start_ram;
stream.write(Date.now() + "," + ram_used + "," + disk_used + "\n"); stream.write(Date.now() + "," + ram_used + "," + disk_used + "\n");
check(); check();
}); });
...@@ -33,7 +33,6 @@ var check = function(){ ...@@ -33,7 +33,6 @@ var check = function(){
} }
//init_server(); //init_server();
max_ram = total_ram - os.freemem();
diskspace.check("C", function (err, result){ diskspace.check("C", function (err, result){
start_disk = parseInt(result.used); start_disk = parseInt(result.used);
check(); check();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment