Re: Amanda Backup
2005-03-02 16:18:00
Hi, Paul,
on Mittwoch, 02. März 2005 at 21:42 you wrote to amanda-users:
PB> Paul Bijnens wrote:
>> especially conffile.c, line 2360 or about (in 2.4.4p4).
PB> Following up to myself, because I forgot the conclusion:
PB> It is absolute time:
PB> 2360 static int get_time()
PB> 2361 {
PB> 2362 time_t st = start_time.r.tv_sec;
PB> 2363 struct tm *stm;
PB> 2364 int hhmm;
PB> 2365
PB> 2366 get_conftoken(INT);
PB> 2367 hhmm = tokenval.i;
PB> 2368
PB> 2369 stm = localtime(&st);
PB> 2370 st -= stm->tm_sec + 60 * (stm->tm_min + 60 * stm->tm_hour);
PB> 2371 st += ((hhmm/100*60) + hhmm%100)*60;
PB> 2372
PB> 2373 if (st-start_time.r.tv_sec<-43200)
PB> 2374 st += 86400;
PB> 2375
PB> 2376 return st;
PB> 2377 }
PB> Line 2370 calculates midnight.
PB> Line 2371 adds the hhmm, resulting in absolute time.
Looks like a relative functionality could be added "relatively" easy
;-)
I CC: this to the hackers ...
(@hackers:please refer to the users-list for the whole story ...)
Thanks for digging that up, Paul.
--
best regards,
Stefan
Stefan G. Weichinger
mailto:monitor AT oops.co DOT at
|
|
|