Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
code
hollandse-luchten-data-app
Commits
6fc0f7b8
Commit
6fc0f7b8
authored
Feb 29, 2020
by
alain
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
account for calibrated data being NULL/0
parent
d58c8835
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
frontend/config/sources/holu-cal.js
frontend/config/sources/holu-cal.js
+1
-1
No files found.
frontend/config/sources/holu-cal.js
View file @
6fc0f7b8
...
...
@@ -73,7 +73,7 @@ export default {
status
:
null
}
if
(
sensorData
)
{
if
(
sensorData
&&
sensorData
[
`
${
parameter
}
_mean`
]
!==
0
)
{
const
dataAgeInHours
=
((
new
Date
()
-
new
Date
(
sensorData
.
time
))
/
3600000
)
-
1
if
(
dataAgeInHours
>=
48
||
dataAgeInHours
<
0
)
{
...
...
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