Fix the latest column of the status graph

The convertion from info to time was not necessary, as the value
is already a time. It was clearing the TIME_NEW bit, not showing
corretly the latest column in the graph.
This commit is contained in:
Andrea Mazzoleni 2015-11-13 21:47:13 +01:00
parent cba363e898
commit 810db857cc

View file

@ -364,9 +364,9 @@ int state_status(struct snapraid_state* state)
i = j; i = j;
} }
oldest = info_get_time(timemap[0]); oldest = timemap[0];
median = info_get_time(timemap[count / 2]); median = timemap[count / 2];
newest = info_get_time(timemap[count - 1]); newest = timemap[count - 1];
dayoldest = day_ago(oldest, now); dayoldest = day_ago(oldest, now);
daymedian = day_ago(median, now); daymedian = day_ago(median, now);
daynewest = day_ago(newest, now); daynewest = day_ago(newest, now);