]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
swap: Fix usage reporting
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 5 Nov 2020 20:17:40 +0000 (15:17 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 5 Nov 2020 20:51:00 +0000 (15:51 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/proc_fuse.c

index 7bc1eb091c0b427aceaa11faed0c401d019a0909..0ad21b928658f087ac54cbd256656436a062fcb4 100644 (file)
@@ -407,7 +407,7 @@ static int proc_swaps_read(char *buf, size_t size, off_t offset,
        if (swtotal > 0) {
                l = snprintf(d->buf + total_len, d->size - total_len,
                             "none%*svirtual\t\t%" PRIu64 "\t%" PRIu64 "\t0\n",
-                            36, " ", swtotal, swfree);
+                            36, " ", swtotal, swusage);
                total_len += l;
        }