kanrisuru 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -2
- data/lib/kanrisuru/core/disk.rb +2 -1
- data/lib/kanrisuru/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7548306bf7e81fd29f475dfef82c4b8f0973448f22f3cb8882518ace8e70389
|
4
|
+
data.tar.gz: c069633d4408c38333cd3dacfade92678f0309a1b53e435238d6f0814598ec73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbd31bc19b021a3d904b8a9c3d167921a47c709ca05b0590fa1dab5d0032181d454b7da0572760cfebe36286456e3a10547bb14bd6fb60c71413de533daa48a8
|
7
|
+
data.tar.gz: '0710940fec60fab2802a9810d6b5a6bb48f575c8ef8661c2447fbe8dc445ac68a3fb174ed1dd6413689439303983ee229e2ebb08cc1b1c0e68007db3346c2219'
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
## Kanrisuru 0.8.4 (August 20, 2021) ##
|
2
|
+
* Convert `fsize` field to an `integer` for du disk module command.
|
3
|
+
|
1
4
|
## Kanrisuru 0.8.3 (August 20, 2021) ##
|
2
5
|
* Fix bug with disk usage, `du` command by escaping the awk variables in the command.
|
3
|
-
* Update `du` command to execute with shell user.
|
6
|
+
* Update `du` command to execute with shell user.
|
4
7
|
|
5
8
|
## Kanrisuru 0.8.2 (August 19, 2021) ##
|
6
|
-
* Convert `major` and `minor` device field values to an `integer` in lsblk
|
9
|
+
* Convert `major` and `minor` device field values to an `integer` in lsblk disk module.
|
7
10
|
|
8
11
|
## Kanrisuru 0.8.1 (August 19, 2021) ##
|
9
12
|
* Fix `nodeps` flag value for `lsblk` command in disk module.
|
data/lib/kanrisuru/core/disk.rb
CHANGED
@@ -41,7 +41,8 @@ module Kanrisuru
|
|
41
41
|
|
42
42
|
rows.map do |row|
|
43
43
|
values = row.split
|
44
|
-
size =
|
44
|
+
size = values[0].to_i
|
45
|
+
size = convert ? Kanrisuru::Util::Bits.convert_bytes(size, :byte, convert) : size
|
45
46
|
|
46
47
|
DiskUsage.new(size, values[1])
|
47
48
|
end
|
data/lib/kanrisuru/version.rb
CHANGED