Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libmtime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libmtime
Commits
0325d858
Commit
0325d858
authored
5 years ago
by
Luis Kornblueh
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug with optional plus/minus slack in event isActive
parent
49a0ce9e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mtime_t_event.inc
+10
-5
10 additions, 5 deletions
src/mtime_t_event.inc
with
10 additions
and
5 deletions
src/mtime_t_event.inc
+
10
−
5
View file @
0325d858
...
...
@@ -260,7 +260,9 @@
&
tmp_triggeredPreviousEventDateTime
TYPE
(
datetime
),
TARGET
::
tmp_dt
,
tmp_evFirstDateTime
,
tmp_evLastDateTime
TYPE
(
timedelta
),
TARGET
::
tmp_plus
,
tmp_minus
,
tmp_evInterval
TYPE
(
timedelta
),
TARGET
::
tmp_evInterval
TYPE
(
c_ptr
)
::
cp_plus
,
cp_minus
TYPE
(
c_ptr
),
TARGET
::
cpointer1
,
cpointer2
,
cpointer3
...
...
@@ -269,8 +271,11 @@
tmp_evLastDateTime
=
this
%
eventLastDateTime
tmp_evInterval
=
this
%
eventInterval
IF
(
PRESENT
(
plus_slack
))
tmp_plus
=
plus_slack
%
td
IF
(
PRESENT
(
minus_slack
))
tmp_minus
=
minus_slack
%
td
cp_plus
=
c_null_ptr
IF
(
PRESENT
(
plus_slack
))
cp_plus
=
plus_slack
%
get_c_pointer
()
cp_minus
=
c_null_ptr
IF
(
PRESENT
(
minus_slack
))
cp_minus
=
minus_slack
%
get_c_pointer
()
event_neverTriggerEvent
=
this
%
neverTriggerEvent
event_triggerCurrentEvent
=
this
%
triggerCurrentEvent
...
...
@@ -306,8 +311,8 @@
&
C_LOC
(
tmp_evFirstDateTime
),
&
!
in
&
C_LOC
(
tmp_evLastDateTime
),
&
!
in
&
C_LOC
(
tmp_evInterval
),
&
!
in
&
C_LOC
(
tmp_plus
),
&
!
in
&
C_LOC
(
tmp_minus
),
&
!
in
&
cp_plus
,
&
!
in
&
cp_minus
,
&
!
in
&
event_neverTriggerEvent
,
&
!
inout
&
event_triggerCurrentEvent
,
&
!
inout
&
event_eventisFirstInDay
,
&
!
inout
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment