git-svn-id: http://svn.planet-lab.org/svn/fprobe-ulog/trunk@6928
8c455092-636d-4788-adf5-
e71def0336e8
dst->flags = src->flags;
}
+void get_cur_epoch() {
+ int fd, len;
+ fd = open("/tmp/fprobe_last_epoch",O_RDONLY);
+ if (fd != -1) {
+ char snum[7];
+ read(fd, snum, 7);
+ sscanf(snum,"%d",&cur_epoch);
+ }
+ return;
+}
+
+
void update_cur_epoch_file(int n) {
int fd, len;
char snum[7];
peers[npeers].write_fd = START_VALUE;
peers[npeers].type = PEER_FILE;
peers[npeers].seq = 0;
+
+ get_cur_epoch();
npeers++;
}
else