Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed Dec 25, 2023
1 parent 314063e commit 7a279ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/psutil/psutil_linux.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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] =
Expand Down
2 changes: 1 addition & 1 deletion src/psutil/psutil_windows.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7a279ca

Please sign in to comment.