diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-11 00:20:26 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-11 21:36:14 +0100 |
commit | 923ebbb53abf1d77a2f21b76e88faa085251af78 (patch) | |
tree | faaea19aaa6ab86b1f3c07e7ce3f155788be1c0c /mirrors/static | |
parent | 2e8d3e99e3dc756508c4398a2cb1e6ce5d9dcb71 (diff) | |
download | archweb-923ebbb53abf1d77a2f21b76e88faa085251af78.tar.gz archweb-923ebbb53abf1d77a2f21b76e88faa085251af78.tar.xz |
Re-add nice() calls for mirror status axes
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/static')
-rw-r--r-- | mirrors/static/mirror_status.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mirrors/static/mirror_status.js b/mirrors/static/mirror_status.js index d107d7d..1c352a9 100644 --- a/mirrors/static/mirror_status.js +++ b/mirrors/static/mirror_status.js @@ -23,11 +23,11 @@ function mirror_status(chart_id, data_url) { x.domain([ d3.min(data, function(c) { return d3.min(c.logs, function(v) { return v.check_time; }); }), d3.max(data, function(c) { return d3.max(c.logs, function(v) { return v.check_time; }); }) - ]); + ]).nice(d3.time.hour); y.domain([ d3.min(data, function(c) { return d3.min(c.logs, function(v) { return v.duration; }); }), d3.max(data, function(c) { return d3.max(c.logs, function(v) { return v.duration; }); }) - ]); + ]).nice(); /* build the axis lines... */ svg.append("g") |