summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-10 17:20:26 -0600
committerDan McGee <dan@archlinux.org>2012-11-11 14:36:14 -0600
commit923ebbb53abf1d77a2f21b76e88faa085251af78 (patch)
treefaaea19aaa6ab86b1f3c07e7ce3f155788be1c0c /mirrors
parent2e8d3e99e3dc756508c4398a2cb1e6ce5d9dcb71 (diff)
Re-add nice() calls for mirror status axes
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/static/mirror_status.js4
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")