summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-19 14:02:04 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-19 14:02:04 +0000
commit5d6ec09fa18b6d035668c14f53e7341c668b793c (patch)
tree0c466e808d74caa034fcea41b3e528d44904ce05 /indra
parentafd30a8bb02863cb9325a8863e8069f88355db57 (diff)
parentbbbf3ee86786c6e564f785b7e73091a1c7ca8922 (diff)
viewer2 merge, again.
Diffstat (limited to 'indra')
-rw-r--r--indra/llwindow/llwindowsdl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp
index 1266a94287..1f705f9e60 100644
--- a/indra/llwindow/llwindowsdl.cpp
+++ b/indra/llwindow/llwindowsdl.cpp
@@ -1610,23 +1610,24 @@ void check_vm_bloat()
const long long significant_vm_difference = 250 * 1024*1024;
const long long significant_rss_difference = 50 * 1024*1024;
+ ssize_t res;
size_t dummy;
char *ptr;
for (int i=0; i<22; ++i) // parse past the values we don't want
{
ptr = NULL;
- getdelim(&ptr, &dummy, ' ', fp);
+ res = getdelim(&ptr, &dummy, ' ', fp);
free(ptr);
}
// 23rd space-delimited entry is vsize
ptr = NULL;
- getdelim(&ptr, &dummy, ' ', fp);
+ res = getdelim(&ptr, &dummy, ' ', fp);
llassert(ptr);
long long this_vm_size = atoll(ptr);
free(ptr);
// 24th space-delimited entry is RSS
ptr = NULL;
- getdelim(&ptr, &dummy, ' ', fp);
+ res = getdelim(&ptr, &dummy, ' ', fp);
llassert(ptr);
long long this_rss_size = getpagesize() * atoll(ptr);
free(ptr);