generated from PlexSheep/rs-base
add a time bar #8
|
@ -138,8 +138,7 @@ impl Clock {
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: This generally works, but we want 0% at the start and 100% at the end, which does not
|
// FIXME: This generally works, but we want 0% at the start and 100% at the end, which does not
|
||||||
// fully work.
|
// fully work. We also want 50% at the half etc. #10
|
||||||
// We also want 50% at the half etc
|
|
||||||
fn timebar_ratio(&self) -> Option<f64> {
|
fn timebar_ratio(&self) -> Option<f64> {
|
||||||
let len = self.timebar_len()?;
|
let len = self.timebar_len()?;
|
||||||
let since = (Local::now()
|
let since = (Local::now()
|
||||||
|
|
Reference in New Issue