Commit be7f5cbe authored by Alexandra Rogova's avatar Alexandra Rogova Committed by Alexandra Rogova

data update

parent 4c079ff4
items,ramUsed,diskUsed
1000,1581416858085
2000,1581416858551
3000,1581416859096
4000,1581416859858
5000,1581416860733
6000,1581416861642
7000,1581416862627
8000,1581416863841
9000,1581416864847
10000,1581416866342
11000,1581416868005
12000,1581416869435
13000,1581416871063
14000,1581416872439
15000,1581416874165
16000,1581416875933
17000,1581416877703
18000,1581416879848
19000,1581416882035
20000,1581416884151
21000,1581416886421
22000,1581416888978
23000,1581416891413
24000,1581416893909
25000,1581416896291
26000,1581416898795
27000,1581416902025
28000,1581416904612
29000,1581416907309
30000,1581416910877
31000,1581416915391
32000,1581416918514
33000,1581416921572
34000,1581416925424
35000,1581416929364
36000,1581416934214
37000,1581416937452
38000,1581416942113
39000,1581416946047
40000,1581416950932
41000,1581416956546
42000,1581416961903
43000,1581416967699
44000,1581416973539
45000,1581416981729
46000,1581416988363
47000,1581416994071
48000,1581416999970
49000,1581417005833
50000,1581417012280
1000,1581418230888
2000,1581418231741
3000,1581418232622
4000,1581418234146
5000,1581418235083
6000,1581418236215
7000,1581418237023
8000,1581418238087
9000,1581418238928
10000,1581418240180
11000,1581418241333
12000,1581418242421
13000,1581418243988
14000,1581418245495
15000,1581418247146
16000,1581418248660
17000,1581418250429
18000,1581418252206
19000,1581418254155
20000,1581418256310
21000,1581418258202
22000,1581418260868
23000,1581418263242
24000,1581418265687
25000,1581418268139
26000,1581418270609
27000,1581418273373
28000,1581418276178
29000,1581418278825
30000,1581418281905
31000,1581418285003
32000,1581418288853
33000,1581418292914
34000,1581418296143
35000,1581418300904
36000,1581418304135
37000,1581418307720
38000,1581418311910
39000,1581418316347
40000,1581418320960
41000,1581418326402
42000,1581418331817
43000,1581418337009
44000,1581418342202
45000,1581418349019
46000,1581418354796
47000,1581418359626
48000,1581418364965
49000,1581418370921
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');
const fs = require("fs");
var diskspace = require("diskspace");
var max_ram;
var total_ram = os.totalmem();
var start_ram = total_ram - os.freemem();
var start_disk;
var stream = fs.createWriteStream("./results/add_csv_attachments_monitor.csv", {flags: "w+"});
stream.write("time,disk,ram\n");
......@@ -24,8 +24,8 @@ stream.write("time,disk,ram\n");
var check = function(){
setTimeout(function () {
diskspace.check("C", function(err, result){
var ram_used = parseInt(result.used) - parseInt(start_disk);
var disk_used = total_ram - os.freemem();
var disk_used = parseInt(result.used) - parseInt(start_disk);
var ram_used = total_ram - os.freemem() - start_ram;
stream.write(Date.now() + "," + ram_used + "," + disk_used + "\n");
check();
});
......@@ -33,7 +33,6 @@ var check = function(){
}
//init_server();
max_ram = total_ram - os.freemem();
diskspace.check("C", function (err, result){
start_disk = parseInt(result.used);
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