From 04e3a7f719a718537f4b97a27e31a0f27c239717 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Fri, 13 Nov 2015 21:47:13 +0100 Subject: [PATCH] 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. --- cmdline/status.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmdline/status.c b/cmdline/status.c index 9aa550d3..939bdd07 100644 --- a/cmdline/status.c +++ b/cmdline/status.c @@ -364,9 +364,9 @@ int state_status(struct snapraid_state* state) i = j; } - oldest = info_get_time(timemap[0]); - median = info_get_time(timemap[count / 2]); - newest = info_get_time(timemap[count - 1]); + oldest = timemap[0]; + median = timemap[count / 2]; + newest = timemap[count - 1]; dayoldest = day_ago(oldest, now); daymedian = day_ago(median, now); daynewest = day_ago(newest, now);