summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-10 12:50:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-10 12:50:57 +0000
commit808419ba4249c4cfb2c4bb5891a599543ca9f25a (patch)
treebd0be8ea4c989d3c7ae0986f22b78167df8a2dc3
parent89d652d5ca11e38ac35738aa8190ef32b646802f (diff)
faster log flushing
git-svn-id: http://svn.miranda-ng.org/main/trunk@6424 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/mir_core/logger.cpp2
-rw-r--r--src/mir_core/miranda.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/logger.cpp b/src/mir_core/logger.cpp
index 4d3781b6bd..7cdc3c600e 100644
--- a/src/mir_core/logger.cpp
+++ b/src/mir_core/logger.cpp
@@ -69,7 +69,7 @@ void InitLogs()
{
LARGE_INTEGER li;
QueryPerformanceFrequency(&li);
- llIdlePeriod = li.QuadPart * 10; // 10 seconds interval
+ llIdlePeriod = li.QuadPart;
}
void UninitLogs()
diff --git a/src/mir_core/miranda.cpp b/src/mir_core/miranda.cpp
index 9ee5ed2b1a..c82971d918 100644
--- a/src/mir_core/miranda.cpp
+++ b/src/mir_core/miranda.cpp
@@ -76,7 +76,7 @@ static void LoadCoreModule(void)
hAPCWindow = CreateWindowEx(0, _T("STATIC"), NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL);
SetWindowLongPtr(hAPCWindow, GWLP_WNDPROC, (LONG_PTR)APCWndProc);
- SetTimer(hAPCWindow, 1, 60*1000, NULL);
+ SetTimer(hAPCWindow, 1, 1000, NULL);
hStackMutex = CreateMutex(NULL, FALSE, NULL);
hThreadQueueEmpty = CreateEvent(NULL, TRUE, TRUE, NULL);