Author: miguel
Date: 2007-05-27 20:55:29 -0400 (Sun, 27 May 2007)
New Revision: 78022

Removed:
   trunk/release/moma/moma.exe
   trunk/release/moma/moma.exe.mdb
Modified:
   trunk/release/moma/README
   trunk/release/moma/moma.cs
Log:
Remove binaries

Modified: trunk/release/moma/README
===================================================================
--- trunk/release/moma/README   2007-05-28 00:40:11 UTC (rev 78021)
+++ trunk/release/moma/README   2007-05-28 00:55:29 UTC (rev 78022)
@@ -2,5 +2,5 @@
 they are missing a few results that used to be part of the shell scripts that
 we used to ran in the past.
 
-The new C# program runs in a couple of seconds, compared to the 20 minute run
+The new C# program runs in 7 seconds, compared to the 20 minute run
 that was based on a bunch of repetitive shell commands

Modified: trunk/release/moma/moma.cs
===================================================================
--- trunk/release/moma/moma.cs  2007-05-28 00:40:11 UTC (rev 78021)
+++ trunk/release/moma/moma.cs  2007-05-28 00:55:29 UTC (rev 78022)
@@ -60,7 +60,7 @@
                        sr.Close ();
                }
        }
-       
+
        static void Main (string [] args)
        {
                if (args.Length < 3){
@@ -130,6 +130,8 @@
 
                concat ("head");
 
+               reports.Sort (Report.date_sorter);
+               
                foreach (Report r in reports){
                        p ("<div class=\"sub\">");
                        p ("<div class='col1'>");
@@ -159,11 +161,21 @@
        Dictionary <string,int> local = new Dictionary<string,int> ();
        public static Dictionary <string,int> GlobalApi = new 
Dictionary<string,int> ();
        public string Date;
+       public DateTime DateParsed;
        public string Ip;
        public string Definitions;
        public string Name;
        public string Comments;
 
+       public static IComparer date_sorter = new DateSorter ();
+
+       class DateSorter : IComparer {
+               public int Compare (object x, object y)
+               {
+                       return ((Report) y).DateParsed.CompareTo 
(((Report)x).DateParsed);
+               }
+       }
+       
        class CountCompare : IComparer {
                Report r;
                
@@ -224,6 +236,7 @@
                        StreamReader sr = new StreamReader (fs);
 
                        Date = sr.ReadLine ();
+                       DateParsed = DateTime.Parse (Date);
                        Ip = sr.ReadLine ();
                        
                        string r = ReadMeta (sr);

Deleted: trunk/release/moma/moma.exe
===================================================================
(Binary files differ)

Deleted: trunk/release/moma/moma.exe.mdb
===================================================================
(Binary files differ)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to