mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Give time reference for attributes read from disk
This commit is contained in:
parent
345f9bf019
commit
4a25cdc952
2 changed files with 9 additions and 0 deletions
|
|
@ -950,6 +950,7 @@ void state_device(struct snapraid_state* state, int operation, tommy_list* filte
|
|||
tommy_list high;
|
||||
tommy_list low;
|
||||
int ret;
|
||||
time_t now = time(0);
|
||||
|
||||
switch (operation) {
|
||||
case DEVICE_UP : msg_progress("Spinup...\n"); break;
|
||||
|
|
@ -1007,6 +1008,10 @@ void state_device(struct snapraid_state* state, int operation, tommy_list* filte
|
|||
}
|
||||
}
|
||||
|
||||
/* with a GUI always gives time reference */
|
||||
if (state->opt.gui)
|
||||
log_tag("unixtime:%" PRIi64 "\n", (int64_t)now);
|
||||
|
||||
if (state->opt.fake_device) {
|
||||
ret = devtest(&high, &low, operation);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -186,6 +186,10 @@ void state_thermal(struct snapraid_state* state, time_t now)
|
|||
}
|
||||
}
|
||||
|
||||
/* with a GUI always gives time reference */
|
||||
if (state->opt.gui)
|
||||
log_tag("unixtime:%" PRIi64 "\n", (int64_t)now);
|
||||
|
||||
if (state->opt.fake_device) {
|
||||
ret = devtest(&high, &low, DEVICE_SMART);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue