diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-10 17:20:26 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-11 14:36:14 -0600 |
commit | 923ebbb53abf1d77a2f21b76e88faa085251af78 (patch) | |
tree | faaea19aaa6ab86b1f3c07e7ce3f155788be1c0c | |
parent | 2e8d3e99e3dc756508c4398a2cb1e6ce5d9dcb71 (diff) |
Re-add nice() calls for mirror status axes
Signed-off-by: Dan McGee <dan@archlinux.org>
-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 d107d7d1..1c352a9f 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") |