Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
897219d6
Commit
897219d6
authored
May 19, 2015
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timer: fix timer_check() to iterate all levels.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
fc3a762c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ccan/timer/timer.c
ccan/timer/timer.c
+1
-1
No files found.
ccan/timer/timer.c
View file @
897219d6
...
...
@@ -360,7 +360,7 @@ struct timers *timers_check(const struct timers *timers, const char *abortstr)
/* For other levels, "current" bucket has been emptied, and may contain
* entries for the current + level_size bucket. */
for
(
l
=
1
;
timers
->
level
[
l
]
&&
l
<
PER_LEVEL
;
l
++
)
{
for
(
l
=
1
;
l
<
ARRAY_SIZE
(
timers
->
level
)
&&
timers
->
level
[
l
]
;
l
++
)
{
uint64_t
per_bucket
=
1ULL
<<
(
TIMER_LEVEL_BITS
*
l
);
off
=
((
timers
->
base
>>
(
l
*
TIMER_LEVEL_BITS
))
%
PER_LEVEL
);
...
...
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