diff options
Diffstat (limited to 'virt-top/virt_top_calendar2.ml')
-rwxr-xr-x | virt-top/virt_top_calendar2.ml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/virt-top/virt_top_calendar2.ml b/virt-top/virt_top_calendar2.ml index 184f2b9..cb0ebec 100755 --- a/virt-top/virt_top_calendar2.ml +++ b/virt-top/virt_top_calendar2.ml @@ -51,5 +51,8 @@ fun time -> eprintf "end time: %s\n" (Printer.CalendarPrinter.to_string cal); - (* Convert to a time_t, adjusting for the current timezone. *) - fst (Unix.mktime (Calendar.to_unixtm cal)) + (* Convert to a time_t. Note that we compare this against + * Unix.gettimeofday in the main module, so this must be returned as + * plain seconds from 1970 with no timezone adjustment. (RHBZ#637964) + *) + Calendar.to_unixfloat cal |