projects
/
qomet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
29c8b39
)
Fix sign of deltaTime for disconnections
author
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 8 Feb 2018 17:34:10 +0000
(18:34 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 8 Feb 2018 17:34:10 +0000
(18:34 +0100)
models/assessment.js
patch
|
blob
|
blame
|
history
diff --git
a/models/assessment.js
b/models/assessment.js
index
d5bd3a1
..
65d594b
100644
(file)
--- a/
models/assessment.js
+++ b/
models/assessment.js
@@
-123,7
+123,7
@@
const AssessmentModel =
//increment discoCount, reset discoTime to NULL, update totalDisco
AssessmentEntity.getDiscoTime(aid, number, (err,discoTime) => {
if (!!discoTime)
- AssessmentEntity.addDisco(aid, number,
discoTime - Date.now()
);
+ AssessmentEntity.addDisco(aid, number,
Date.now() - discoTime
);
});
},