mirror of
https://github.com/house-of-vanity/tmux-helper.git
synced 2026-02-04 09:47:59 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e08864d99 | ||
|
|
6a9a871006 | ||
|
|
bab994fc41 | ||
|
|
fc1c2f539d |
BIN
.github/prev.png
vendored
BIN
.github/prev.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 25 KiB |
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "tmux-helper"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
description = "Utility for printing system info for tmux status line."
|
||||
authors = ["Ultra Desu <ultradesu@hexor.ru>"]
|
||||
edition = "2018"
|
||||
|
||||
@@ -249,8 +249,8 @@ pub fn mpd(config: &config::Config) {
|
||||
}
|
||||
}
|
||||
if let Some(time) = conn.status().unwrap().time {
|
||||
track_info.position = time.0.num_seconds().to_string();
|
||||
track_info.duration = time.1.num_seconds().to_string()
|
||||
track_info.position = format_time(time.0.num_seconds() as i64);
|
||||
track_info.duration = format_time(time.1.num_seconds() as i64);
|
||||
}
|
||||
let status = match conn.status() {
|
||||
Ok(status) => {
|
||||
|
||||
Reference in New Issue
Block a user