* University of Maryland at College Park
*/
/*
- * $Id: infofile.h,v 1.7.4.4 1998/12/03 03:02:45 martinea Exp $
+ * $Id: infofile.h,v 1.7.4.4.8.2 2005/03/16 18:15:28 martinea Exp $
*
* interface for current info file reading code
*/
#define EPOCH ((time_t)0)
#define AVG_COUNT 3
+#define NB_HISTORY 100
#define newperf(ary,f) ( ary[2]=ary[1], ary[1]=ary[0], ary[0]=(f) )
typedef struct stats_s {
char label[MAX_LABEL]; /* tape label */
} stats_t;
+typedef struct history_s {
+ int level; /* level of dump */
+ long size; /* original size of dump in kbytes */
+ long csize; /* compressed size of dump in kbytes */
+ time_t date; /* time of dump */
+ long secs; /* time of dump in secs */
+} history_t;
+
typedef struct perf_s {
float rate[AVG_COUNT];
float comp[AVG_COUNT];
perf_t incr;
stats_t inf[DUMP_LEVELS];
int last_level, consecutive_runs;
+ history_t history[NB_HISTORY+1];
} info_t;