Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Mynij-unit-tests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alexandra Rogova
Mynij-unit-tests
Commits
c715eb21
Commit
c715eb21
authored
Feb 27, 2020
by
Alexandra Rogova
Browse files
Options
Browse Files
Download
Plain Diff
Test
/reviewed-on
!2
parents
bd394892
11d6ef9c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1492 additions
and
1460 deletions
+1492
-1460
Milestone1/results/add_csv.csv
Milestone1/results/add_csv.csv
+256
-256
Milestone1/results/add_csv_monitor.csv
Milestone1/results/add_csv_monitor.csv
+290
-307
Milestone1/results/add_random_csv.csv
Milestone1/results/add_random_csv.csv
+256
-256
Milestone1/results/add_random_csv_monitor.csv
Milestone1/results/add_random_csv_monitor.csv
+687
-638
Milestone1/unit_tests/monitor.js
Milestone1/unit_tests/monitor.js
+3
-3
No files found.
Milestone1/results/add_csv.csv
View file @
c715eb21
This diff is collapsed.
Click to expand it.
Milestone1/results/add_csv_monitor.csv
View file @
c715eb21
This diff is collapsed.
Click to expand it.
Milestone1/results/add_random_csv.csv
View file @
c715eb21
This diff is collapsed.
Click to expand it.
Milestone1/results/add_random_csv_monitor.csv
View file @
c715eb21
This diff is collapsed.
Click to expand it.
Milestone1/unit_tests/monitor.js
View file @
c715eb21
...
...
@@ -19,7 +19,7 @@ function init_monitor(){
var
server
=
net
.
createServer
(
function
(
socket
)
{
socket
.
on
(
"
data
"
,
function
(
data
){
diskspace
.
check
(
"
/
"
,
function
(
err
,
result
){
var
disk_used
=
result
.
used
-
start_disk
;
var
disk_used
=
Math
.
max
(
result
.
used
-
start_disk
,
0
)
;
var
ram_used
=
data
;
stream
.
write
(
Date
.
now
()
+
"
,
"
+
ram_used
+
"
,
"
+
disk_used
+
"
\n
"
);
});
...
...
@@ -40,7 +40,7 @@ process.on("exit", function(){
monitor
.
kill
();
})
diskspace
.
check
(
"
C
"
,
function
(
err
,
result
){
diskspace
.
check
(
"
/
"
,
function
(
err
,
result
){
start_disk
=
result
.
used
;
init_monitor
();
});
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment