]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use size_t for cumulative shared pages limits instead of uint64_t
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 13 Apr 2011 19:28:58 +0000 (13:28 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 13 Apr 2011 19:28:58 +0000 (13:28 -0600)
because cache_mem (Config.memMaxSize) is size_t.

src/ipc/mem/Pages.h

index bf07d995847ec5ce47dd493912ac36425348f08a..bbd2023e4b9b5900590fe4106dce2bed35069efa 100644 (file)
@@ -34,13 +34,13 @@ void *PagePointer(const PageId &page);
 /* Limits and statistics */
 
 /// the total number of shared memory bytes that can be in use at any time
-uint64_t Limit();
+size_t Limit();
 
 /// approximate total number of shared memory bytes used now
-uint64_t Level();
+size_t Level();
 
 /// approximate total number of shared memory bytes we can allocate now
-inline uint64_t Available() { return Limit() - Level(); }
+inline size_t Available() { return Limit() - Level(); }
 
 /// returns page size in bytes; all pages are assumed to be the same size
 size_t PageSize();