i3status-rust: update to 0.12.0.

This commit is contained in:
Jan Christian Grünhage 2019-12-09 08:35:02 +01:00 committed by Helmut Pozimski
parent 38cd058401
commit f7b795de30
2 changed files with 2 additions and 26 deletions

View File

@ -1,24 +0,0 @@
diff --git a/src/blocks/disk_space.rs b/src/blocks/disk_space.rs
--- src/blocks/disk_space.rs
+++ src/blocks/disk_space.rs
@@ -189,16 +189,16 @@ impl Block for DiskSpace {
let mut result;
let mut converted = 0.0f64;
let mut converted_str = String::new();
- let total = (statvfs.blocks() * statvfs.fragment_size()) as u64;
- let used = ((statvfs.blocks() - statvfs.blocks_free()) * statvfs.fragment_size()) as u64;
+ let total = (statvfs.blocks() as u64) * (statvfs.fragment_size() as u64);
+ let used = ((statvfs.blocks() as u64) - (statvfs.blocks_free() as u64)) * (statvfs.fragment_size() as u64);
match self.info_type {
InfoType::Available => {
- result = (statvfs.blocks_available() * statvfs.block_size()) as u64;
+ result = (statvfs.blocks_available() as u64) * (statvfs.block_size() as u64);
converted = Unit::bytes_in_unit(self.unit, result);
}
InfoType::Free => {
- result = (statvfs.blocks_free() * statvfs.block_size()) as u64;
+ result = (statvfs.blocks_free() as u64) * (statvfs.block_size() as u64);
converted = Unit::bytes_in_unit(self.unit, result);
}
InfoType::Total => {

View File

@ -1,6 +1,6 @@
# Template file for 'i3status-rust'
pkgname=i3status-rust
version=0.11.0
version=0.12.0
revision=1
build_style=cargo
hostmakedepends="pkg-config"
@ -10,4 +10,4 @@ maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="GPL-3.0-only"
homepage="https://github.com/greshake/i3status-rust"
distfiles="https://github.com/greshake/i3status-rust/archive/v${version}.tar.gz"
checksum=2f749ba4646e2fc0af62d31c990ae8d59d454eb0e5fe947b39d64cfeabbb0a1c
checksum=dbb0bb748c293c79e9b6936e437c0b6186572cbdaa4b64eae390d1069c351786