From 7cfd3eb61834ee3d4c5037b0a3ffc71089b9564a Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 17 Aug 2006 20:22:35 +0000 Subject: (svn r5934) -Cleanup: forgot some conversions to Year and to Date -Cleanup: use _cur_year instead of _date for some (year based) comparisons -Cleanup: remove a magic number in favour of another (less) magic number --- yapf/yapf_costcache.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yapf') diff --git a/yapf/yapf_costcache.hpp b/yapf/yapf_costcache.hpp index ee4029e0c..5ad6f8cdc 100644 --- a/yapf/yapf_costcache.hpp +++ b/yapf/yapf_costcache.hpp @@ -148,11 +148,11 @@ protected: FORCEINLINE static Cache& stGetGlobalCache() { static int last_rail_change_counter = 0; - static uint32 last_day = 0; + static Date last_date = 0; // some statistics - if (last_day != _date) { - last_day = _date; + if (last_date != _date) { + last_date = _date; DEBUG(yapf, 1)("pf time today:%5d ms\n", _total_pf_time_us / 1000); _total_pf_time_us = 0; } -- cgit v1.2.3-70-g09d2