mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
core: fix time displayed in status bar (it was one second late) (bug #40097)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.4.2-rc2, 2013-09-20
|
||||
v0.4.2-rc2, 2013-09-24
|
||||
|
||||
|
||||
This document lists all changes for each version.
|
||||
@@ -14,6 +14,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
Version 0.4.2 (under dev!)
|
||||
--------------------------
|
||||
|
||||
* core: fix time displayed in status bar (it was one second late) (bug #40097)
|
||||
* core: fix memory leak on unhook of a print hook (if using tags)
|
||||
* core: fix computation of columns in output of /help (take care about size of
|
||||
time/buffer/prefix)
|
||||
|
||||
+2
-2
@@ -942,9 +942,9 @@ hook_timer_init (struct t_hook *hook)
|
||||
/*
|
||||
* here we should use 0, but with this value timer is sometimes called
|
||||
* before second has changed, so for displaying time, it may display
|
||||
* 2 times the same second, that's why we use 1000 micro seconds
|
||||
* 2 times the same second, that's why we use 10000 micro seconds
|
||||
*/
|
||||
HOOK_TIMER(hook, last_exec).tv_usec = 1000;
|
||||
HOOK_TIMER(hook, last_exec).tv_usec = 10000;
|
||||
HOOK_TIMER(hook, last_exec).tv_sec =
|
||||
HOOK_TIMER(hook, last_exec).tv_sec -
|
||||
((HOOK_TIMER(hook, last_exec).tv_sec + (diff_hour * 3600)) %
|
||||
|
||||
Reference in New Issue
Block a user