uptime_proc_show uses bootbased clocks so we should use @real_start_timespec here instead. Seems was a typo while converting from pcs6 code.
In scope of https://jira.sw.ru/browse/PSBM-41406 Signed-off-by: Cyrill Gorcunov <[email protected]> CC: Andrey Vagin <[email protected]> CC: Pavel Emelianov <[email protected]> CC: Vladimir Davydov <[email protected]> CC: Konstantin Khorenko <[email protected]> --- fs/proc/uptime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-pcs7.git/fs/proc/uptime.c =================================================================== --- linux-pcs7.git.orig/fs/proc/uptime.c +++ linux-pcs7.git/fs/proc/uptime.c @@ -51,8 +51,8 @@ static int uptime_proc_show(struct seq_f #ifdef CONFIG_VE if (!ve_is_super(get_exec_env())) { set_normalized_timespec(&uptime, - uptime.tv_sec - get_exec_env()->start_timespec.tv_sec, - uptime.tv_nsec - get_exec_env()->start_timespec.tv_nsec); + uptime.tv_sec - get_exec_env()->real_start_timespec.tv_sec, + uptime.tv_nsec - get_exec_env()->real_start_timespec.tv_nsec); } #endif seq_printf(m, "%lu.%02lu %lu.%02lu\n", _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
