Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
f365e558
Commit
f365e558
authored
Feb 24, 2015
by
Axel Auweter
Browse files
Fix weekstamp calculation and MBPusher timestamping.
parent
751689e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
DCDBLib/src/sensordatastore.cpp
View file @
f365e558
...
...
@@ -173,7 +173,7 @@ void SensorDataStoreImpl::insert(SensorId* sid, uint64_t ts, uint64_t value)
#endif
/* Calculate and insert week number */
uint16_t
week
=
ts
/
604800000000
;
uint16_t
week
=
ts
/
604800000000
000
;
sid
->
dsid
.
rsvd
=
week
;
/* Insert into Cassandra */
...
...
DCDBLib/src/timestamp.cpp
View file @
f365e558
...
...
@@ -103,7 +103,7 @@ uint64_t DCDBTimeStamp::getRaw(void)
*/
uint16_t
DCDBTimeStamp
::
getWeekstamp
(
void
)
{
uint16_t
week
=
raw
/
604800000000
;
uint16_t
week
=
raw
/
604800000000
000
;
return
week
;
}
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