[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Calculations for stat graph?

From: Jan Linnenkohl <Jan.Linnenkohl_at_gmx.de>
Date: 2006-07-14 16:29:07 CEST

I just lokked at the code and find a small problem in calculation the quarter. May be this is bringing up the error you mentioned.

Jan

Index: StatGraphDlg.cpp
===================================================================
--- StatGraphDlg.cpp (revision 7024)
+++ StatGraphDlg.cpp (working copy)
@@ -944,7 +944,7 @@
         if (m_weekcount < 80)
                 return time.GetMonth();
         if (m_weekcount < 320)
- return (time.GetMonth()/4)+1; // quarters
+ return (time.GetYear()/4)+1; // quarters
         return time.GetYear();
 }

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Jul 14 17:06:21 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.