X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=inline;f=dss.c;h=3bcf60d4ba39d083f27bd26cb85998bb7a6eff69;hb=9967e30b97ef5fb90f31ceb06ac34b974e1788a8;hp=a9cdb3b8a590f91c3d5d9488e6d99c8831bd3f11;hpb=f05ae914bb3563ee657e4261ad0a7a8e80e8e9e7;p=dss.git diff --git a/dss.c b/dss.c index a9cdb3b..3bcf60d 100644 --- a/dss.c +++ b/dss.c @@ -185,8 +185,8 @@ static int next_snapshot_is_due(void) goto out; } - tv_divide(wanted, &diff, &tmp); /* sleep time betweeen two snapshots */ - diff.tv_sec = s->completion_time; /* completion time of the the latest snaphot */ + tv_divide(wanted, &diff, &tmp); /* sleep time between two snapshots */ + diff.tv_sec = s->completion_time; /* completion time of the latest snapshot */ diff.tv_usec = 0; tv_add(&diff, &tmp, &next_snapshot_time); ret = (tv_diff(&now, &next_snapshot_time, &diff) < 0)? 0 : 1;