Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bsjaekel committed Jan 18, 2013
1 parent 457b418 commit 79accca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 24 deletions.
9 changes: 9 additions & 0 deletions README
Expand Up @@ -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

3 changes: 1 addition & 2 deletions src/graph/Plot.java
Expand Up @@ -79,8 +79,7 @@ public final class Plot {
* 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.
Expand Down
22 changes: 0 additions & 22 deletions src/tsd/client/MetricForm.java
Expand Up @@ -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();
Expand Down

0 comments on commit 79accca

Please sign in to comment.