/*  This file is part of lsnet.
    Copyright (C) 2009-2010  Sterling Pickens
    Lsnet is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Lsnet is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with lsnet.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __MEMINFO_H__
#define __MEMINFO_H__ 1

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <sys/types.h>
//#include "homedir.h"
#include "logdir.h"
#include "config.h"

//typedef struct{
//	unsigned : 64;
//}MY_U64;


struct mem_data{
	unsigned int polls;
	unsigned int frequency;
	long long poll_one[8];
	long long min_one[8];
	long long **poll_all;
};

//extern struct mem_data mem;
//extern int using_alt_conf;
extern struct log_data global_strs;
//extern int errno;
//extern char *program_invocation;



void Mem_allocate(void);
static void Get_meminfo(void);
void Mem_ten_min(void);
static void Mem_one_min(void);

#endif
