[hackers] [st] Removing two unnecessary gettimeofday(). || Christoph Lohmann
commit f27b44b7c271bda4ad3a0c4043bb709e0a4e4fbb
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Fri Apr 11 18:11:25 2014 +0200
Removing two unnecessary gettimeofday().
diff --git a/st.c b/st.c
index 392f12d..a104a50 100644
--- a/st.c
+++ b/st.c
_AT_@ -3737,8 +3737,8 @@ run(void) {
else
cresize(xw.fw, xw.fh);
- gettimeofday(&lastblink, NULL);
gettimeofday(&last, NULL);
+ lastblink = last;
for(xev = actionfps;;) {
long deltatime;
_AT_@ -3773,7 +3773,7 @@ run(void) {
if(blinktimeout && TIMEDIFF(now, lastblink) > blinktimeout) {
tsetdirtattr(ATTR_BLINK);
term.mode ^= MODE_BLINK;
- gettimeofday(&lastblink, NULL);
+ lastblink = now;
dodraw = 1;
}
deltatime = TIMEDIFF(now, last);
Received on Fri Apr 11 2014 - 18:16:00 CEST
This archive was generated by hypermail 2.3.0
: Fri Apr 11 2014 - 18:24:30 CEST