/[LeafOK_CVS]/lbbs/src/section_list_loader.c
ViewVC logotype

Diff of /lbbs/src/section_list_loader.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.52 by sysadm, Tue Oct 21 06:24:51 2025 UTC Revision 1.54 by sysadm, Thu Oct 23 01:16:56 2025 UTC
# Line 691  int section_list_loader_launch(void) Line 691  int section_list_loader_launch(void)
691          int load_count;          int load_count;
692          int last_mid;          int last_mid;
693          time_t tm_section_list_reload = 0;          time_t tm_section_list_reload = 0;
694          time_t tm_user_list_reload = 0;          time_t tm_user_list_reload = time(NULL);
695            time_t tm_user_online_list_reload = time(NULL);
696    
697          if (section_list_loader_pid != 0)          if (section_list_loader_pid != 0)
698          {          {
# Line 806  int section_list_loader_launch(void) Line 807  int section_list_loader_launch(void)
807                  // Reload user list                  // Reload user list
808                  if (time(NULL) - tm_user_list_reload >= BBS_user_list_load_interval)                  if (time(NULL) - tm_user_list_reload >= BBS_user_list_load_interval)
809                  {                  {
810                          if (user_list_pool_reload() < 0)                          if (user_list_pool_reload(0) < 0)
811                          {                          {
812                                  log_error("user_list_pool_reload() error\n");                                  log_error("user_list_pool_reload(all_user) error\n");
813                          }                          }
814                          tm_user_list_reload = time(NULL);                          tm_user_list_reload = time(NULL);
815                  }                  }
816    
817                    // Reload user online list
818                    if (time(NULL) - tm_user_online_list_reload >= BBS_user_online_list_load_interval)
819                    {
820                            if (user_list_pool_reload(1) < 0)
821                            {
822                                    log_error("user_list_pool_reload(online_user) error\n");
823                            }
824                            tm_user_online_list_reload = time(NULL);
825                    }
826    
827                  // Wait for BBS_section_list_load_interval seconds                  // Wait for BBS_section_list_load_interval seconds
828                  while (!SYS_server_exit && time(NULL) - tm_section_list_reload < BBS_section_list_load_interval)                  while (!SYS_server_exit && time(NULL) - tm_section_list_reload < BBS_section_list_load_interval)
829                  {                  {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1