public StatDiskActivity()
        {
            sessionID = DateTime.Now.Ticks;
            historyIndex = -1;
            historyIndexHour = -1;
            historyIndexDay = -1;

            var cat = new System.Diagnostics.PerformanceCounterCategory("PhysicalDisk");
            var instNames = cat.GetInstanceNames();
            foreach (var s in instNames)
            {
                if (s == "_Total")
                    continue;

                var item = new StatDiskActivityItem(s);
                _disks.Add(item);
            }

            _timer = new Timer(Update, null, 0, 1000);
            Update(null);
        }
Beispiel #2
0
        public StatDiskActivity()
        {
            sessionID        = DateTime.Now.Ticks;
            historyIndex     = -1;
            historyIndexHour = -1;
            historyIndexDay  = -1;

            var cat       = new System.Diagnostics.PerformanceCounterCategory("PhysicalDisk");
            var instNames = cat.GetInstanceNames();

            foreach (var s in instNames)
            {
                if (s == "_Total")
                {
                    continue;
                }

                var item = new StatDiskActivityItem(s);
                _disks.Add(item);
            }

            _timer = new Timer(Update, null, 0, 1000);
            Update(null);
        }