Imported Upstream version 2.4.5
[debian/amanda] / server-src / infofile.h
index 813d816656f015b6db58e4000cdd601b70193d45..eb068f7df20e909961a3344eab1392742fb31fdc 100644 (file)
@@ -25,7 +25,7 @@
  *                        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
  */
@@ -39,6 +39,7 @@
 #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 {
@@ -52,6 +53,14 @@ 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];
@@ -67,6 +76,7 @@ typedef struct info_s {
     perf_t  incr;
     stats_t inf[DUMP_LEVELS];
     int last_level, consecutive_runs;
+    history_t history[NB_HISTORY+1];
 } info_t;