Skip to content

Commit

Permalink
Fix minor doc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
j8r committed Jul 30, 2018
1 parent c3f38c4 commit 7a1739d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ authors:
- bararchy <[email protected]>
- Julien Reichardt <[email protected]>

crystal: 0.24.2
crystal: 0.25.1

license: MIT
4 changes: 2 additions & 2 deletions src/hardware/net.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# net = Hardware::Net.new # System network stats
# old_in, old_out = net.in_octets, net.out_octets
# loop do
# net = Hardware::Net.new # Update network stats
# sleep 1
# net = Hardware::Net.new # Update network stats
# now_in, now_out = net.in_octets, net.out_octets
# puts "down: #{(now_in - old_in) / 1000}kB/s | up: #{(now_out - old_out) / 1000}kB/s" # => down: 427kB/s | up: 24kB/s
# old_in, old_out = now_in, now_out
Expand Down Expand Up @@ -42,7 +42,7 @@ struct Hardware::Net
OutMcastOctets
InBcastOctets
OutBcastOctets
InCsumEsrrors
InCsumErrors
InNoEctPkts
InEct1Pkts
InEct0Pkts
Expand Down
3 changes: 1 addition & 2 deletions src/hardware/pid.cr
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ struct Hardware::PID
def self.get_pids(executable : String)
pids = Array(Int32).new
all(cpu_time: false, cpu_total: false) do |pid|
pid_name = pid.name
pids << pid.pid if pid_name == executable
pids << pid.pid if pid.name == executable
end
pids
end
Expand Down

0 comments on commit 7a1739d

Please sign in to comment.