Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
emros-em5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
nathan
emros-em5
Commits
68dc7954
Commit
68dc7954
authored
Feb 11, 2020
by
Christian Sponfeldner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix place value error in timeout of connection monitoring
parent
c7580170
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
security.h
emros/devices/inc/security.h
+1
-1
No files found.
emros/devices/inc/security.h
View file @
68dc7954
...
...
@@ -25,7 +25,7 @@ private:
static
constexpr
double
DOWNLINK_HEARTBEAT_INTERVAL_SEC
=
Ethprotocol
::
GetDownlinkHeartbeatIntervalInSec
();
static
constexpr
double
TOLERANCE_FOR_DOWNLINK_HEARTBEAT_INTERVAL_SEC
=
0
.
001
;
static
constexpr
uint32_t
TIMEOUT_FOR_DOWNLINK_HEARTBEAT_NANOSEC
=
static_cast
<
uint32_t
>
((
1
0
E6
)
*
(
DOWNLINK_HEARTBEAT_INTERVAL_SEC
+
TOLERANCE_FOR_DOWNLINK_HEARTBEAT_INTERVAL_SEC
));
static
constexpr
uint32_t
TIMEOUT_FOR_DOWNLINK_HEARTBEAT_NANOSEC
=
static_cast
<
uint32_t
>
((
1E6
)
*
(
DOWNLINK_HEARTBEAT_INTERVAL_SEC
+
TOLERANCE_FOR_DOWNLINK_HEARTBEAT_INTERVAL_SEC
));
static
constexpr
int32_t
LEAKY_BUCKET_ERROR_THRESHOLD
=
30
;
// at this level (or higher) of "error points" the leaky bucket will report an error
static
constexpr
int32_t
LEAKY_BUCKET_ERROR_EMPHASIS
=
6
;
// amount of "error points" added into the leaky bucket if a timeout occured when calling update()
static
constexpr
int32_t
LEAKY_BUCKET_SUCCESS_EMPHASIS
=
3
;
// amount of "error points" taken out of leaky bucket at a call to setEvent()
...
...
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