Skip to content

Commit

Permalink
fix upstream psutil lib, display all partitions, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-aires committed Dec 24, 2021
1 parent 1647e58 commit 2cff873
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
Binary file modified dist/os-probe-linux-x86-64.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ shards:

psutil:
git: https://github.com/gabriel-aires/psutil.cr.git
version: 0.2.1
version: 0.2.2

slang:
git: https://github.com/jeromegn/slang.git
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: os-probe
version: 0.8.1
version: 0.8.2

authors:
- Gabriel Aires <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/dashboard.cr
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class Dashboard < Application
end

disks = Array(Hash(Symbol, Float64 | String)).new
Psutil.disk_partitions.each do |partition|
Psutil.disk_partitions(true).each do |partition|
du = Psutil.disk_usage partition.mountpoint
disks << {
:mount => du.path,
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/disk_monitor.cr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Schedule.job :disk_monitor, :cron, "5 * * * * *" do
seconds = Time.local.to_unix
volumes = Psutil.disk_partitions
volumes = Psutil.disk_partitions(true)
disks = Array(Disk).new

volumes.each do |vol|
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/partition_monitor.cr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Schedule.job :partition_monitor, :cron, "17 * * * * *" do
volumes = Psutil.disk_partitions
volumes = Psutil.disk_partitions(true)
parts = Array(Partition).new

volumes.each do |vol|
Expand Down

0 comments on commit 2cff873

Please sign in to comment.