diff options
author | Dmitry Sivachenko <demon@FreeBSD.org> | 2005-05-17 06:31:26 +0000 |
---|---|---|
committer | Dmitry Sivachenko <demon@FreeBSD.org> | 2005-05-17 06:31:26 +0000 |
commit | 9daf92007e562c06db8852b2f3ec1799dd1ea17a (patch) | |
tree | b677dd4e62dba1b2a1ca3aef9dd58d59f81855fa | |
parent | ce2f1062431791f3f2848d72205b20e8067157d3 (diff) | |
download | ports-9daf92007e562c06db8852b2f3ec1799dd1ea17a.tar.gz ports-9daf92007e562c06db8852b2f3ec1799dd1ea17a.zip |
Notes
-rw-r--r-- | net-mgmt/mrtg/files/patch-src-rateup.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-mgmt/mrtg/files/patch-src-rateup.c b/net-mgmt/mrtg/files/patch-src-rateup.c new file mode 100644 index 000000000000..285b56715aab --- /dev/null +++ b/net-mgmt/mrtg/files/patch-src-rateup.c @@ -0,0 +1,18 @@ +--- src/rateup.c~ 2005-05-16 19:15:06.468444000 +0200 ++++ src/rateup.c 2005-05-16 19:15:09.138421000 +0200 +@@ -318,6 +318,7 @@ + } + + /* multiplicator for bits/bytes */ ++ maxv = (long long) max (maxvi, maxvo); + maxvi = maxvi < (long long) 0 ? -maxvi : maxvi; + maxvo = maxvo < (long long) 0 ? -maxvo : maxvo; + origmaxvi = maxvi; +@@ -328,7 +329,6 @@ + maxvi *= muli; + maxvo *= muli; + } +- maxv = (long long) max (maxvi, maxvo); + if (step > MONTH_SAMPLE) + { + type = 4; |