X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flov%2Flproc_lov.c;h=01687d9b60ac84968e8241e42cf6608cf361557e;hb=bd9470f85e6a30c4f9d439b579a037419be7785e;hp=d9d3d91efdfad6f36848023d4d04fc5710d5285a;hpb=0f8dca08a4f68cba82c2c822998ecc309d3b7aaf;p=fs%2Flustre-release.git diff --git a/lustre/lov/lproc_lov.c b/lustre/lov/lproc_lov.c index d9d3d91..01687d9 100644 --- a/lustre/lov/lproc_lov.c +++ b/lustre/lov/lproc_lov.c @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -213,7 +211,7 @@ static int lov_rd_qos_priofree(char *page, char **start, off_t off, int count, lov = &dev->u.lov; *eof = 1; return snprintf(page, count, "%d%%\n", - (lov->lov_qos.lq_prio_free * 100) >> 8); + (lov->lov_qos.lq_prio_free * 100 + 255) >> 8); } static int lov_wr_qos_priofree(struct file *file, const char *buffer, @@ -247,7 +245,7 @@ static int lov_rd_qos_thresholdrr(char *page, char **start, off_t off, lov = &dev->u.lov; *eof = 1; return snprintf(page, count, "%d%%\n", - (lov->lov_qos.lq_threshold_rr * 100) >> 8); + (lov->lov_qos.lq_threshold_rr * 100 + 255) >> 8); } static int lov_wr_qos_thresholdrr(struct file *file, const char *buffer,