mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
Fix use of key
This commit is contained in:
parent
b630712d4b
commit
f69aa6faa6
1 changed files with 2 additions and 2 deletions
|
@ -494,7 +494,7 @@ updateScheduledLimits(gpointer data)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const int begin_time = pref_int_get( PREF_KEY_SCHED_BEGIN );
|
const int begin_time = pref_int_get( PREF_KEY_SCHED_BEGIN );
|
||||||
const int end_time = pref_int_get( PREF_KEY_SCHED_BEGIN );
|
const int end_time = pref_int_get( PREF_KEY_SCHED_END );
|
||||||
time_t t;
|
time_t t;
|
||||||
struct tm *tm;
|
struct tm *tm;
|
||||||
int cur_time;
|
int cur_time;
|
||||||
|
@ -510,7 +510,7 @@ updateScheduledLimits(gpointer data)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( (cur_time >= begin_time) || (cur_time <= end_time) )
|
if( (cur_time >= begin_time) || (cur_time <= end_time) )
|
||||||
in_sched_state = TRUE;
|
in_sched_state = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue