generated from PlexSheep/rs-base
tune the blink interval (#9)
* tune the blink interval * update * symmetric on/off tim
This commit is contained in:
parent
431b6b5b13
commit
bf52c8f45f
2 changed files with 2 additions and 2 deletions
|
@ -99,4 +99,4 @@ $ tclock -c '#e63946'
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
MIT License.
|
MIT License, refer to [LICENSE](./LICENSE) for detail.
|
||||||
|
|
|
@ -94,7 +94,7 @@ impl Widget for &Timer {
|
||||||
let result = execute(&self.execute);
|
let result = execute(&self.execute);
|
||||||
*self.execute_result.borrow_mut() = Some(result);
|
*self.execute_result.borrow_mut() = Some(result);
|
||||||
}
|
}
|
||||||
if remaining_time.num_seconds() % 2 == 0 {
|
if (remaining_time.num_milliseconds()).abs() % 1000 < 500 {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
format_duration(Duration::zero(), self.format)
|
format_duration(Duration::zero(), self.format)
|
||||||
|
|
Reference in a new issue