diff --git a/src/psutil/psutil_linux.nim b/src/psutil/psutil_linux.nim index 7f73ba6..628b6b7 100644 --- a/src/psutil/psutil_linux.nim +++ b/src/psutil/psutil_linux.nim @@ -687,7 +687,7 @@ proc disk_partitions*(all = false): seq[DiskPartition] = var entry = getmntent(file) while entry != nil: let device = if entry.mnt_fsname == "none": "" else: $entry.mnt_fsname - let mountpoint = $entry.mnt_dir + let mountpoint = $entry.mnt_dir let fstype = $entry.mnt_type let opts = $entry.mnt_opts @@ -986,8 +986,8 @@ iterator process_unix(file: string, family: int, inodes: OrderedTable[string, continue let path = if len(tokens) == 8: tokens[7] else: "" - yield Connection(fd: fd, family: family, `type`: parseInt(socketType), - laddr: path, status: "NONE", pid: pid) + yield Connection(fd: fd, family: family, `type`: parseInt(socketType), + laddr: path, status: "NONE", pid: pid) proc net_connections*(kind = "inet", pid = -1): seq[Connection] = diff --git a/src/psutil/psutil_windows.nim b/src/psutil/psutil_windows.nim index 44516d1..a44e877 100644 --- a/src/psutil/psutil_windows.nim +++ b/src/psutil/psutil_windows.nim @@ -602,7 +602,7 @@ proc disk_partitions*(all = false): seq[DiskPartition] = else: opts = if (pflags and FILE_READ_ONLY_VOLUME) != 0: "ro" else: "rw" - if (pflags and FILE_VOLUME_IS_COMPRESSED) != 0: + if (pflags and FILE_VOLUME_IS_COMPRESSED) != 0: opts &= ",compressed" if len(opts) > 0: