From: Konstantin Khorenko <[email protected]>

Don't show pointer as a latency value, it does not look valid.

Fixes: 9ecc9b390a5d ("/proc/<pid>/vz_latency: Show maximal allocation
latency in the last second.")

https://jira.sw.ru/browse/PSBM-93675

Signed-off-by: Konstantin Khorenko <[email protected]>

Fixes: cb894905bd82 ("/proc/<pid>/vz_latency: Show maximal allocation
latency in the last second.") in VZ8.

Added to VZ8 in the scope of https://jira.sw.ru/browse/PSBM-127844.
Signed-off-by: Evgenii Shatokhin <[email protected]>
---
 kernel/ve/vecalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/ve/vecalls.c b/kernel/ve/vecalls.c
index f1cc04ee82da..07742e405409 100644
--- a/kernel/ve/vecalls.c
+++ b/kernel/ve/vecalls.c
@@ -158,7 +158,7 @@ static int vestat_seq_show(struct seq_file *m, void *v)
                   (unsigned long long)strv_time,
                   (unsigned long long)uptime_cycles,
                   (unsigned long long)used,
-                  (unsigned long long)ve->sched_lat_ve.last.maxlat,
+                  (unsigned long long)ve->sched_lat_ve.last.maxlat[0],
                   (unsigned long long)ve->sched_lat_ve.last.totlat,
                   ve->sched_lat_ve.last.count);
        return 0;
-- 
2.29.0

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to