aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llframestats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llframestats.cpp')
-rw-r--r--linden/indra/newview/llframestats.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/llframestats.cpp b/linden/indra/newview/llframestats.cpp
index 237f59b..9ae7667 100644
--- a/linden/indra/newview/llframestats.cpp
+++ b/linden/indra/newview/llframestats.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 5 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -178,11 +179,11 @@ void LLFrameStats::dump()
178 static S32 dump_count = 0; 179 static S32 dump_count = 0;
179 180
180 char file_with_num[256]; /* Flawfinder: ignore */ 181 char file_with_num[256]; /* Flawfinder: ignore */
181 snprintf(file_with_num, sizeof(file_with_num), "fs%d.txt", dump_count); /* Flawfinder: ignore */ 182 snprintf(file_with_num, sizeof(file_with_num), "fs%d.txt", dump_count); /* Flawfinder: ignore */
182 dump_count++; 183 dump_count++;
183 184
184 char filename[LL_MAX_PATH]; /* Flawfinder: ignore */ 185 char filename[LL_MAX_PATH]; /* Flawfinder: ignore */
185 snprintf(filename, LL_MAX_PATH, "%s", gDirUtilp->getExpandedFilename(LL_PATH_LOGS, file_with_num).c_str()); /* Flawfinder: ignore */ 186 snprintf(filename, LL_MAX_PATH, "%s", gDirUtilp->getExpandedFilename(LL_PATH_LOGS, file_with_num).c_str()); /* Flawfinder: ignore */
186 FILE *fp = LLFile::fopen(filename, "w"); /* Flawfinder: ignore */ 187 FILE *fp = LLFile::fopen(filename, "w"); /* Flawfinder: ignore */
187 if (!fp) 188 if (!fp)
188 { 189 {
@@ -224,7 +225,7 @@ void LLFrameStats::dump()
224 fclose(fp); 225 fclose(fp);
225 226
226 // Now dump cumulative stats 227 // Now dump cumulative stats
227 snprintf(filename, LL_MAX_PATH, "%s", gDirUtilp->getExpandedFilename(LL_PATH_LOGS, mSummaryFilename.c_str()).c_str()); /* Flawfinder: ignore */ 228 snprintf(filename, LL_MAX_PATH, "%s", gDirUtilp->getExpandedFilename(LL_PATH_LOGS, mSummaryFilename.c_str()).c_str()); /* Flawfinder: ignore */
228 fp = LLFile::fopen(filename, "a"); /* Flawfinder: ignore */ 229 fp = LLFile::fopen(filename, "a"); /* Flawfinder: ignore */
229 if (!fp) 230 if (!fp)
230 { 231 {