Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
c4fbd7fc
Commit
c4fbd7fc
authored
Nov 08, 2006
by
Hisham Muhammad
Browse files
Assign creation of the allocation log file to a separate #define.
parent
febe259e
Changes
1
Hide whitespace changes
Inline
Side-by-side
DebugMemory.c
View file @
c4fbd7fc
...
@@ -49,7 +49,11 @@ void DebugMemory_new() {
...
@@ -49,7 +49,11 @@ void DebugMemory_new() {
singleton
->
allocations
=
0
;
singleton
->
allocations
=
0
;
singleton
->
deallocations
=
0
;
singleton
->
deallocations
=
0
;
singleton
->
size
=
0
;
singleton
->
size
=
0
;
#ifdef DEBUG_ALLOC
singleton
->
file
=
fopen
(
"/tmp/htop-debug-alloc.txt"
,
"w"
);
singleton
->
file
=
fopen
(
"/tmp/htop-debug-alloc.txt"
,
"w"
);
#else
singleton
->
file
=
NULL
;
#endif
singleton
->
totals
=
true
;
singleton
->
totals
=
true
;
//singleton->file = NULL;
//singleton->file = NULL;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment