Changeset 10129
- Timestamp:
- Feb 7, 2010, 5:13:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/session.c
r10124 r10129 1074 1074 turtleFindNextChange( struct tr_turtle_info * t ) 1075 1075 { 1076 int day; 1076 1077 struct tm tm; 1077 1078 time_t today_began_at; … … 1105 1106 if the next change is tomorrow to turn limits ON, look for tomorrow in t->days. */ 1106 1107 if( t->_nextChangeValue && (( t->_nextChangeAt >= today_began_at + SECONDS_PER_DAY ))) 1107 t->_nextChangeAllowed = ( t->days & ( ( tm.tm_wday + 1 ) % 7 ) ) != 0;1108 day = ( tm.tm_wday + 1 ) % 7; 1108 1109 else 1109 t->_nextChangeAllowed = ( t->days & tm.tm_wday ) != 0; 1110 day = tm.tm_wday; 1111 t->_nextChangeAllowed = ( t->days & (1<<day) ) != 0; 1110 1112 1111 1113 if( t->isClockEnabled && t->_nextChangeAllowed ) { … … 1113 1115 tr_localtime_r( &t->_nextChangeAt, &tm ); 1114 1116 strftime( buf, sizeof( buf ), "%a %b %d %T %Y", &tm ); 1115 tr_ dbg( "Turtle clock updated: at %s we'll turn limits %s", buf, (t->_nextChangeValue?"on":"off") );1117 tr_inf( "Turtle clock updated: at %s we'll turn limits %s", buf, (t->_nextChangeValue?"on":"off") ); 1116 1118 } 1117 1119 }
Note: See TracChangeset
for help on using the changeset viewer.