Changeset 13474
- Timestamp:
- Sep 7, 2012, 4:22:21 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/main.c
r13391 r13474 495 495 /* ensure the directories are created */ 496 496 if(( str = gtr_pref_string_get( TR_PREFS_KEY_DOWNLOAD_DIR ))) 497 497 g_mkdir_with_parents( str, 0777 ); 498 498 if(( str = gtr_pref_string_get( TR_PREFS_KEY_INCOMPLETE_DIR ))) 499 499 g_mkdir_with_parents( str, 0777 ); 500 500 501 501 /* initialize the libtransmission session */ … … 522 522 /* check & see if it's time to update the blocklist */ 523 523 if( gtr_pref_flag_get( TR_PREFS_KEY_BLOCKLIST_ENABLED ) ) { 524 525 526 527 528 529 530 524 if( gtr_pref_flag_get( PREF_KEY_BLOCKLIST_UPDATES_ENABLED ) ) { 525 const int64_t last_time = gtr_pref_int_get( "blocklist-date" ); 526 const int SECONDS_IN_A_WEEK = 7 * 24 * 60 * 60; 527 const time_t now = time( NULL ); 528 if( last_time + SECONDS_IN_A_WEEK < now ) 529 gtr_core_blocklist_update( cbdata->core ); 530 } 531 531 } 532 532
Note: See TracChangeset
for help on using the changeset viewer.