Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
f94e2a15
Commit
f94e2a15
authored
Nov 14, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6012
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
b0b74847
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
openair2/UTIL/OMG/omg_constants.h
openair2/UTIL/OMG/omg_constants.h
+1
-1
openair2/UTIL/OMG/rwalk.c
openair2/UTIL/OMG/rwalk.c
+3
-3
openair2/UTIL/OMG/rwp.c
openair2/UTIL/OMG/rwp.c
+3
-3
openair2/UTIL/OMG/steadystaterwp.c
openair2/UTIL/OMG/steadystaterwp.c
+3
-3
openair2/UTIL/OMG/trace.c
openair2/UTIL/OMG/trace.c
+1
-1
No files found.
openair2/UTIL/OMG/omg_constants.h
View file @
f94e2a15
...
...
@@ -74,7 +74,7 @@ MAX_NUM_NODE_TYPES /*!< All the types. Used to perform the same operations to al
//#define eps 0.00000095367431649629
/*! A constant used to compare two doubles */
#define eps 0.10 //10.99
#define
omg_
eps 0.10 //10.99
#define SLEEP 1
#define GET_DATA 0
...
...
openair2/UTIL/OMG/rwalk.c
View file @
f94e2a15
...
...
@@ -349,8 +349,8 @@ update_rwalk_nodes (double cur_time)
//case1:time to next event equals to current time
if
(
tmp
->
pair
!=
NULL
&&
((
double
)
tmp
->
pair
->
next_event_t
>=
cur_time
-
eps
)
&&
((
double
)
tmp
->
pair
->
next_event_t
<=
cur_time
+
eps
))
&&
((
double
)
tmp
->
pair
->
next_event_t
>=
cur_time
-
omg_
eps
)
&&
((
double
)
tmp
->
pair
->
next_event_t
<=
cur_time
+
omg_
eps
))
{
if
(
my_node
->
mobile
==
1
)
sleep_rwalk_node
(
tmp
->
pair
,
cur_time
);
...
...
@@ -361,7 +361,7 @@ update_rwalk_nodes (double cur_time)
//case2: current time is greater than the time to next event
else
if
(
tmp
->
pair
!=
NULL
&&
(
cur_time
-
eps
)
>
tmp
->
pair
->
next_event_t
)
&&
(
cur_time
-
omg_
eps
)
>
tmp
->
pair
->
next_event_t
)
{
while
(
cur_time
>=
tmp
->
pair
->
next_event_t
)
...
...
openair2/UTIL/OMG/rwp.c
View file @
f94e2a15
...
...
@@ -324,8 +324,8 @@ update_rwp_nodes (double cur_time)
//case1:time to next event equals to current time
if
(
tmp
->
pair
!=
NULL
&&
((
double
)
tmp
->
pair
->
next_event_t
>=
cur_time
-
eps
)
&&
((
double
)
tmp
->
pair
->
next_event_t
<=
cur_time
+
eps
))
&&
((
double
)
tmp
->
pair
->
next_event_t
>=
cur_time
-
omg_
eps
)
&&
((
double
)
tmp
->
pair
->
next_event_t
<=
cur_time
+
omg_
eps
))
{
if
(
my_node
->
mobile
==
1
)
sleep_rwp_node
(
tmp
->
pair
,
cur_time
);
...
...
@@ -336,7 +336,7 @@ update_rwp_nodes (double cur_time)
//case2: current time is greater than the time to next event
else
if
(
tmp
->
pair
!=
NULL
&&
(
cur_time
-
eps
)
>
tmp
->
pair
->
next_event_t
)
&&
(
cur_time
-
omg_
eps
)
>
tmp
->
pair
->
next_event_t
)
{
while
(
cur_time
>=
tmp
->
pair
->
next_event_t
)
...
...
openair2/UTIL/OMG/steadystaterwp.c
View file @
f94e2a15
...
...
@@ -529,8 +529,8 @@ update_steadystaterwp_nodes (double cur_time)
//case1:time to next event equals to current time
if
(
tmp
->
pair
!=
NULL
&&
((
double
)
tmp
->
pair
->
next_event_t
>=
cur_time
-
eps
)
&&
((
double
)
tmp
->
pair
->
next_event_t
<=
cur_time
+
eps
))
&&
((
double
)
tmp
->
pair
->
next_event_t
>=
cur_time
-
omg_
eps
)
&&
((
double
)
tmp
->
pair
->
next_event_t
<=
cur_time
+
omg_
eps
))
{
if
(
my_node
->
mobile
==
1
)
sleep_rwp_node
(
tmp
->
pair
,
cur_time
);
...
...
@@ -541,7 +541,7 @@ update_steadystaterwp_nodes (double cur_time)
//case2: current time is greater than the time to next event
else
if
(
tmp
->
pair
!=
NULL
&&
(
cur_time
-
eps
)
>
tmp
->
pair
->
next_event_t
)
&&
(
cur_time
-
omg_
eps
)
>
tmp
->
pair
->
next_event_t
)
{
while
(
cur_time
>=
tmp
->
pair
->
next_event_t
)
...
...
openair2/UTIL/OMG/trace.c
View file @
f94e2a15
...
...
@@ -296,7 +296,7 @@ update_trace_nodes (double cur_time)
//case1:time to next event equals to current time
if
(
tmp
->
pair
!=
NULL
&&
tmp
->
pair
->
next_event_t
>=
cur_time
-
eps
if
(
tmp
->
pair
!=
NULL
&&
tmp
->
pair
->
next_event_t
>=
cur_time
-
omg_
eps
&&
tmp
->
pair
->
next_event_t
<=
cur_time
)
{
if
(
node_n
->
next
->
next
==
NULL
)
...
...
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