Created
June 2, 2014 08:41
-
-
Save pfreixes/2ac45e716041b11c38ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Whisper example of update value | |
------------------------------- | |
Have a look to Whisper data format map to learn how it is https://gist.github.com/pfreixes/1b4c9f0cf1c2bd19edf9 | |
Network packets : ts value | |
+------------------+ | |
| 1401614544 10.0 | packet 1 | |
+------------------+ | |
| 1401614556 7.0 | packet 2, 12' ahead from previous | |
+------------------+ | |
| 1401614558 3.0 | packet 3, 2' ahead from previous | |
+------------------+ | |
| . | | |
| . | | |
| . | | |
+------------------| | |
| 1401657744 11.0 | packet 4320 | |
+------------------+ | |
+------------------+ | |
| average | | |
+------------------+ | |
| 300 | older ts, 1 week with retention each 100 | |
+------------------+ | |
| 0.5 | file factor | |
+------------------+ | |
| 2 | archives | |
+------------------+ | |
|+----------------+| | |
|| @12 || | |
|+----------------+| | |
|| 10 || senconds per point | |
|+----------------+| | |
|| 8640 || 1 day of points | |
|+--------------- +| | |
+------------------+ | |
|+----------------+| | |
|| @8640 + header|| | |
|+----------------+| | |
|| 100 || seconds per point | |
|+----------------+| | |
|| 6048 || 1 week | |
|+--------------- +| | |
+------------------+ | |
| 1401614544 10.0 | packet 1 | |
+------------------+ | |
| 1401614556 3.0 | packet 3, aliniation data overrides slots with previous values !!! | |
+------------------+ | |
| . | | |
| . | | |
| . | | |
+------------------+ | |
| 1401657744 11.0 | packet 4320 | |
+------------------+ | |
| 0 | | |
| 0 | | |
| 0 | | |
| . | | |
| . | | |
+------------------+ <---- here starts next archive | |
| 1401614544 x | avg(10, 3, ....) 10 points from previous archive | |
+------------------+ | |
| 1401614644 y | +100 seconcs | |
+------------------+ | |
| 0 | | |
| 0 | | |
| 0 | | |
| . | | |
| . | | |
+------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment