Skip to content

Commit

Permalink
Fix the latest column of the status graph
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amadvance committed Nov 13, 2015
1 parent cba363e commit 04e3a7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmdline/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 04e3a7f

Please sign in to comment.