diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-12-31 08:54:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-12-31 08:54:37 +0000 |
commit | 178c28535b5ed1a693c9e9cf5de4c703bc2bf3c6 (patch) | |
tree | e0a029015f481bd2ce1a85b3b73396244d91caf1 /modules/statistics/statistics.module | |
parent | f04d4d17dd6a7c94bf10b564930a4448d5449c3d (diff) | |
download | brdo-178c28535b5ed1a693c9e9cf5de4c703bc2bf3c6.tar.gz brdo-178c28535b5ed1a693c9e9cf5de4c703bc2bf3c6.tar.bz2 |
- Patch #204900 by webernet: code style fixes. Likely my last patch of the year. Fiew. Thanks all, and see you on the other side. :)
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r-- | modules/statistics/statistics.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index afcee9a53..831a0d5c7 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -180,12 +180,12 @@ function statistics_cron() { $statistics_timestamp = variable_get('statistics_day_timestamp', ''); if ((time() - $statistics_timestamp) >= 86400) { - /* reset day counts */ + // Reset day counts. db_query('UPDATE {node_counter} SET daycount = 0'); variable_set('statistics_day_timestamp', time()); } - /* clean expired access logs */ + // Clean up expired access logs. db_query('DELETE FROM {accesslog} WHERE timestamp < %d', time() - variable_get('statistics_flush_accesslog_timer', 259200)); } @@ -226,7 +226,7 @@ function statistics_title_list($dbfield, $dbrows) { function statistics_get($nid) { if ($nid > 0) { - /* retrieves an array with both totalcount and daycount */ + // Retrieve an array with both totalcount and daycount. $statistics = db_fetch_array(db_query('SELECT totalcount, daycount, timestamp FROM {node_counter} WHERE nid = %d', $nid)); } |