Skip to content

Commit

Permalink
proc_fuse: Fix get_swap_info typo swtotal == 0 -> *swtotal == 0
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Hudspith <[email protected]>
  • Loading branch information
alexhudspith committed Nov 6, 2023
1 parent 35ab918 commit 494a141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proc_fuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ static void get_swap_info(const char *cgroup, uint64_t memlimit,
*swtotal = 0;
else
*swtotal = (memswlimit - memlimit) / 1024;
if (memusage > memswusage || swtotal == 0)
if (memusage > memswusage || *swtotal == 0)
*swusage = 0;
else
*swusage = (memswusage - memusage) / 1024;
Expand Down

0 comments on commit 494a141

Please sign in to comment.