Permalink
Browse files

build fixes

  • Loading branch information...
1 parent 457b418 commit 79acccae5d382f8bdd745e718ce875b007ed7596 @bsjaekel bsjaekel committed Jan 18, 2013
Showing with 10 additions and 24 deletions.
  1. +9 −0 README
  2. +1 −2 src/graph/Plot.java
  3. +0 −22 src/tsd/client/MetricForm.java
View
9 README
@@ -18,3 +18,12 @@ easily store hundreds of billions of data points.
OpenTSDB is free software and is available under both LGPLv2.1+ and GPLv3+.
Find more about OpenTSDB at http://opentsdb.net
+
+== Building the antlr stuff ==
+
+1. cd into src/expression
+2. run java -classpath ../../build/third_party/antlr/antlr-3.4-complete.jar org.antlr.Tool MetricArithmeticExpression.g MetricArithmeticExpressionTreeWalker.g
+3. cd into src base directory
+4. run build.sh
+5. enjoy
+
View
@@ -79,8 +79,7 @@
* Gnuplot always renders timestamps in UTC, so we simply apply a delta
* to get local time.
*/
- private static final int utc_offset =
- TimeZone.getDefault().getOffset(System.currentTimeMillis()) / 1000;
+ private static int utc_offset = TimeZone.getDefault().getOffset(System.currentTimeMillis()) / 1000;
/**
* Constructor.
@@ -393,28 +393,6 @@ private void clearTags() {
}
}
- public void autoSuggestTag(final String tag) {
- // First try to see if the tag is already in the table.
- final int nrows = tagtable.getRowCount();
- int unused_row = -1;
- for (int row = 1; row < nrows; row++) {
- final SuggestBox tagname = ((SuggestBox) tagtable.getWidget(row, 1));
- final SuggestBox tagvalue = ((SuggestBox) tagtable.getWidget(row, 2));
- final String thistag = tagname.getValue();
- if (thistag.equals(tag)) {
- return; // This tag is already in the table.
- } if (thistag.isEmpty() && tagvalue.getValue().isEmpty()) {
- unused_row = row;
- break;
- }
- }
- if (unused_row >= 0) {
- ((SuggestBox) tagtable.getWidget(unused_row, 1)).setValue(tag);
- } else {
- addTag(tag);
- }
- }
-
private final BlurHandler recompact_tagtable = new BlurHandler() {
public void onBlur(final BlurEvent event) {
int ntags = getNumTags();

0 comments on commit 79accca

Please sign in to comment.