Skip to content

Commit 9541466

Browse files
author
virco
committed
fix
1 parent 1d9d1de commit 9541466

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ptimer.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Copyright (c) 2013-2014 Anton Titov.
22
* Copyright (c) 2013-2014 pCloud Ltd.
33
* All rights reserved.
4-
*
4+
*
55
* Redistribution and use in source and binary forms, with or without
66
* modification, are permitted provided that the following conditions are met:
77
* * Redistributions of source code must retain the above copyright
@@ -12,7 +12,7 @@
1212
* * Neither the name of pCloud Ltd nor the
1313
* names of its contributors may be used to endorse or promote products
1414
* derived from this software without specific prior written permission.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1717
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1818
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
@@ -36,7 +36,7 @@
3636
* (it is log TIMER_ARRAY_SIZE(timer_seconds_after_now)). So servicing a timer is
3737
* generally constant time task with a maximum constant of TIMER_LEVELS and increasing
3838
* TIMER_ARRAY_SIZE will trade memory for less processing for each timer.
39-
*
39+
*
4040
* TIMER_ARRAY_SIZE should be a power of two.
4141
*/
4242

@@ -139,7 +139,7 @@ static void timer_thread(){
139139
pthread_mutex_unlock(&timer_mutex);
140140
if (unlikely(!psync_list_isempty(&timers)))
141141
timer_process_timers(&timers);
142-
if (unlikely(psync_current_time-lt>=20))
142+
if (unlikely(psync_current_time-lt>=25))
143143
timer_sleep_detected(lt);
144144
else if (unlikely_log(psync_current_time==lt)){
145145
if (!psync_do_run)

0 commit comments

Comments
 (0)