chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
166e843
)
clock: Rename fn initial_time
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 19 Mar 2021 00:44:23 +0000
(
00:44
+0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 20:12:41 +0000
(20:12 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/clock.rs
patch
|
blob
|
history
diff --git
a/src/clock.rs
b/src/clock.rs
index 6fb9cd8218d70f66250755f2858ef86065667932..037eb7c37a064f35c4dc7ab0893dc916da63f5be 100644
(file)
--- a/
src/clock.rs
+++ b/
src/clock.rs
@@
-119,7
+119,7
@@
struct Current {
}
impl ChessClock {
- fn time(&self) -> TimeSpec {
+ fn
initial_
time(&self) -> TimeSpec {
TVL::seconds(self.time.into())
}
}
@@
-168,7
+168,7
@@
impl Clock {
} else {
URS::Running
}
- } else if ustate.remaining == self.spec.time() {
+ } else if ustate.remaining == self.spec.
initial_
time() {
URS::Reset
} else {
URS::Stopped