mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-19 14:36:38 -05:00
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:
parent
cba363e898
commit
810db857cc
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue