Ejemplo n.º 1
0
            public static MemoryStatus GetMemoryStatus()
            {
                var statistics = new VmStatistics();
                var host       = mach_host_self();
                var count      = _structLength;

                host_statistics64(host, 2, ref statistics, ref count);
                var free = (statistics.Equals(default)
Ejemplo n.º 2
0
        public ActionResult Overview()
        {
            var store = new MetaContext(_db);
            var stats = new VmStatistics();

            stats.ResourceStats = store.GetResourceStats();

            return(View(stats));
        }
Ejemplo n.º 3
0
        public ActionResult Overview()
        {
            var db    = MongoInfrastructureFactory.GetMongoDatabase(Settings.MongoUrl);
            var store = new MetaContext(db);
            var stats = new VmStatistics();

            stats.ResourceStats = store.GetResourceStats();

            return(View(stats));
        }