Lines Matching full:stats
16 SM_RCSID("@(#)$Id: stats.c,v 8.58 2013-11-22 20:51:56 ca Exp $")
22 static bool GotStats = false; /* set when we have stats to merge */
33 ** type -- type of stats this represents.
138 struct statistics stats; local
165 if (read(fd, (char *) &stats, sizeof(stats)) == sizeof(stats) &&
166 stats.stat_size == sizeof(stats) &&
167 stats.stat_magic == Stat.stat_magic &&
168 stats.stat_version == Stat.stat_version)
175 stats.stat_nf[i] += Stat.stat_nf[i];
176 stats.stat_bf[i] += Stat.stat_bf[i];
177 stats.stat_nt[i] += Stat.stat_nt[i];
178 stats.stat_bt[i] += Stat.stat_bt[i];
179 stats.stat_nr[i] += Stat.stat_nr[i];
180 stats.stat_nd[i] += Stat.stat_nd[i];
181 stats.stat_nq[i] += Stat.stat_nq[i];
183 stats.stat_cr += Stat.stat_cr;
184 stats.stat_ct += Stat.stat_ct;
185 stats.stat_cf += Stat.stat_cf;
188 memmove((char *) &stats, (char *) &Stat, sizeof(stats));
192 (void) write(fd, (char *) &stats, sizeof(stats));