Beispiel #1
0
        static private void PrintInfo(String databaseFileName)
        {
            var fileDatabase = new FileDatabase(databaseFileName);

            int count     = fileDatabase.GetFileCount();
            int available = fileDatabase.GetAvailableFileCount();
            int outOfDate = fileDatabase.GetOutOfDateFileCount();

            Console.WriteLine("Total files:         {0}", count);
            Console.WriteLine("Available files:     {0}", available);
            Console.WriteLine("Out-of-date files:   {0}", outOfDate);
            Console.WriteLine("Up-to-date files:    {0} ({1:N1}%)", available - outOfDate, (available - outOfDate) * 100.0 / count);
        }
Beispiel #2
0
        private static void PrintInfo(String databaseFileName)
        {
            var fileDatabase = new FileDatabase(databaseFileName);

            int count = fileDatabase.GetFileCount();
            int available = fileDatabase.GetAvailableFileCount();
            int outOfDate = fileDatabase.GetOutOfDateFileCount();

            Console.WriteLine("Total files:         {0}", count);
            Console.WriteLine("Available files:     {0}", available);
            Console.WriteLine("Out-of-date files:   {0}", outOfDate);
            Console.WriteLine("Up-to-date files:    {0} ({1:N1}%)", available - outOfDate, (available - outOfDate) * 100.0 / count);
        }