summaryrefslogtreecommitdiffstats
path: root/database/engine/cache.h
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2023-12-12 16:28:02 +0200
committerGitHub <noreply@github.com>2023-12-12 16:28:02 +0200
commit21462af834abcdf136c53d21379e74b2c7306839 (patch)
tree055a89b5ea74f8e0807acb58492cbb57370d896f /database/engine/cache.h
parentfbec21e40ddf621db74daf90daf5c76672955fc8 (diff)
Handle coverity issues related to Y2K38_SAFETY (#16583)
* Switch update_every_s to uint32_t Fix coverity issues related to Y2K38_SAFETY * Fix CI
Diffstat (limited to 'database/engine/cache.h')
-rw-r--r--database/engine/cache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/database/engine/cache.h b/database/engine/cache.h
index 7cd7c0636f..03be3a26da 100644
--- a/database/engine/cache.h
+++ b/database/engine/cache.h
@@ -27,7 +27,7 @@ typedef struct pgc_entry {
time_t end_time_s; // the end time of the page
size_t size; // the size in bytes of the allocation, outside the cache
void *data; // a pointer to data outside the cache
- uint32_t update_every_s; // the update every of the page
+ uint32_t update_every_s; // the update every of the page
bool hot; // true if this entry is currently being collected
uint8_t *custom_data;
} PGC_ENTRY;
@@ -210,8 +210,8 @@ Word_t pgc_page_section(PGC_PAGE *page);
Word_t pgc_page_metric(PGC_PAGE *page);
time_t pgc_page_start_time_s(PGC_PAGE *page);
time_t pgc_page_end_time_s(PGC_PAGE *page);
-time_t pgc_page_update_every_s(PGC_PAGE *page);
-time_t pgc_page_fix_update_every(PGC_PAGE *page, time_t update_every_s);
+uint32_t pgc_page_update_every_s(PGC_PAGE *page);
+uint32_t pgc_page_fix_update_every(PGC_PAGE *page, uint32_t update_every_s);
time_t pgc_page_fix_end_time_s(PGC_PAGE *page, time_t end_time_s);
void *pgc_page_data(PGC_PAGE *page);
void *pgc_page_custom_data(PGC *cache, PGC_PAGE *page);