feat: added -n flag to the nettop (#1129)

This commit is contained in:
Serhiy Mytrovtsiy
2022-10-28 22:47:58 +02:00
parent 58cb255780
commit 2e7f00380c
2 changed files with 3 additions and 3 deletions

View File

@@ -241,7 +241,7 @@ internal class UsageReader: Reader<Network_Usage> {
private func readProcessBandwidth() -> Bandwidth {
let task = Process()
task.launchPath = "/usr/bin/nettop"
task.arguments = ["-P", "-L", "1", "-k", "time,interface,state,rx_dupe,rx_ooo,re-tx,rtt_avg,rcvsize,tx_win,tc_class,tc_mgt,cc_algo,P,C,R,W,arch"]
task.arguments = ["-P", "-L", "1", "-n", "-k", "time,interface,state,rx_dupe,rx_ooo,re-tx,rtt_avg,rcvsize,tx_win,tc_class,tc_mgt,cc_algo,P,C,R,W,arch"]
let outputPipe = Pipe()
let errorPipe = Pipe()
@@ -439,7 +439,7 @@ public class ProcessReader: Reader<[Network_Process]> {
let task = Process()
task.launchPath = "/usr/bin/nettop"
task.arguments = ["-P", "-L", "1", "-k", "time,interface,state,rx_dupe,rx_ooo,re-tx,rtt_avg,rcvsize,tx_win,tc_class,tc_mgt,cc_algo,P,C,R,W,arch"]
task.arguments = ["-P", "-L", "1", "-n", "-k", "time,interface,state,rx_dupe,rx_ooo,re-tx,rtt_avg,rcvsize,tx_win,tc_class,tc_mgt,cc_algo,P,C,R,W,arch"]
let outputPipe = Pipe()
let errorPipe = Pipe()

View File

@@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>408</string>
<string>410</string>
<key>Description</key>
<string>Simple macOS system monitor in your menu bar</string>
<key>LSApplicationCategoryType</key>