diff options
| author | nga <[email protected]> | 2022-02-10 16:48:09 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:09 +0300 | 
| commit | c2a1af049e9deca890e9923abe64fe6c59060348 (patch) | |
| tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/messagebus/www/messagebus.js | |
| parent | 1f553f46fb4f3c5eec631352cdd900a0709016af (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/messagebus/www/messagebus.js')
| -rw-r--r-- | library/cpp/messagebus/www/messagebus.js | 94 | 
1 files changed, 47 insertions, 47 deletions
| diff --git a/library/cpp/messagebus/www/messagebus.js b/library/cpp/messagebus/www/messagebus.js index 2781f47df33..e30508b8796 100644 --- a/library/cpp/messagebus/www/messagebus.js +++ b/library/cpp/messagebus/www/messagebus.js @@ -1,48 +1,48 @@ -function logTransform(v) {  -    return Math.log(v + 1);  -}  -  -function plotHist(where, hist) {  +function logTransform(v) { +    return Math.log(v + 1); +} + +function plotHist(where, hist) {      var max = hist.map(function(x) {return x[1]}).reduce(function(x, y) {return Math.max(x, y)}); -  -    var ticks = [];  -    for (var t = 1; ; t *= 10) {  -        if (t > max) {  -            break;  -        }  -        ticks.push(t);  -    }  -  -    $.plot(where, [hist],  -        {  -            data: hist,  -            series: {  -                bars: {  -                    show: true,  -                    barWidth: 0.9  -                }  -            },  -            xaxis: {  -                mode: 'categories',  -                tickLength: 0  -            },  -            yaxis: {  -                ticks: ticks,  -                transform: logTransform  -            }  -        }  -    );  -}  -  -function plotQueueSize(where, data, ticks) {  -    $.plot(where, [data],  -        {  -            xaxis: {  -                ticks: ticks,  -            },  -            yaxis: {  -                //transform: logTransform  -            }  -        }  -    );  -}  + +    var ticks = []; +    for (var t = 1; ; t *= 10) { +        if (t > max) { +            break; +        } +        ticks.push(t); +    } + +    $.plot(where, [hist], +        { +            data: hist, +            series: { +                bars: { +                    show: true, +                    barWidth: 0.9 +                } +            }, +            xaxis: { +                mode: 'categories', +                tickLength: 0 +            }, +            yaxis: { +                ticks: ticks, +                transform: logTransform +            } +        } +    ); +} + +function plotQueueSize(where, data, ticks) { +    $.plot(where, [data], +        { +            xaxis: { +                ticks: ticks, +            }, +            yaxis: { +                //transform: logTransform +            } +        } +    ); +} | 
