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

Diff of /lbbs/src/user_stat.c

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

Revision 1.3 by sysadm, Fri Oct 24 02:07:01 2025 UTC Revision 1.7 by sysadm, Thu Dec 18 02:56:01 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                                   user_list.c  -  description  /*
3                                                           -------------------   * user_stat
4          Copyright            : (C) 2004-2025 by Leaflet   *   - data model and basic operations of user related statistics
5          Email                : leaflet@leafok.com   *
6   ***************************************************************************/   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7     */
8  /***************************************************************************  
9   *                                                                         *  #ifdef HAVE_CONFIG_H
10   *   This program is free software; you can redistribute it and/or modify  *  #include "config.h"
11   *   it under the terms of the GNU General Public License as published by  *  #endif
  *   the Free Software Foundation; either version 3 of the License, or     *  
  *   (at your option) any later version.                                   *  
  *                                                                         *  
  ***************************************************************************/  
12    
13  #include "log.h"  #include "log.h"
14  #include "section_list.h"  #include "section_list.h"
# Line 74  int user_stat_map_update(USER_STAT_MAP * Line 70  int user_stat_map_update(USER_STAT_MAP *
70                          log_error("article_block_find_by_index(index=%d) error\n", i);                          log_error("article_block_find_by_index(index=%d) error\n", i);
71                          break;                          break;
72                  }                  }
73                    
74                  if (p_article->visible == 0)                  if (p_article->visible == 0)
75                  {                  {
76                          continue;                          continue;
# Line 82  int user_stat_map_update(USER_STAT_MAP * Line 78  int user_stat_map_update(USER_STAT_MAP *
78    
79                  if (p_article->uid > p_map->last_uid)                  if (p_article->uid > p_map->last_uid)
80                  {                  {
81  #ifdef _DEBUG                          log_debug("uid=%d of article(aid=%d) is greater than last_uid=%d\n",
                         log_error("uid=%d of article(aid=%d) is greater than last_uid=%d\n",  
82                                            p_article->uid, p_article->aid, p_map->last_uid);                                            p_article->uid, p_article->aid, p_map->last_uid);
 #endif  
83                          continue;                          continue;
84                  }                  }
85    


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

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