[gcalctool] De-break function that check if currency rates are out of date
- From: Robin Sonefors <rsonefors src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gcalctool] De-break function that check if currency rates are out of date
- Date: Thu, 7 Jan 2010 01:09:00 +0000 (UTC)
commit 36bf0e9ce4a09f4fdef213787efc50ee6e8c75bb
Author: Robin Sonefors <ozamosi flukkost nu>
Date: Thu Jan 7 00:19:25 2010 +0100
De-break function that check if currency rates are out of date
src/currency.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/currency.c b/src/currency.c
index 7bc3eda..9d0a10f 100644
--- a/src/currency.c
+++ b/src/currency.c
@@ -63,7 +63,7 @@ currency_rates_needs_update()
}
g_free(filename);
- if (difftime(buf.st_mtime, time(NULL)) > (60 * 60 * 24 * 7)) {
+ if (difftime(time(NULL), buf.st_mtime) > (60 * 60 * 24 * 7)) {
return 1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]