You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2014/10/22 13:40:09 UTC
[54/68] [abbrv] git commit: Scale then convert to int.
Scale then convert to int.
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/e7fcf6f9
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/e7fcf6f9
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/e7fcf6f9
Branch: refs/heads/hadoop-rdf
Commit: e7fcf6f9cbf55d2ccb2e6f375c8fe9bd885ddf54
Parents: c737fc2
Author: Andy Seaborne <an...@apache.org>
Authored: Mon Oct 20 12:05:14 2014 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Mon Oct 20 12:05:14 2014 +0100
----------------------------------------------------------------------
.../main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/e7fcf6f9/jena-fuseki2/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
----------------------------------------------------------------------
diff --git a/jena-fuseki2/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java b/jena-fuseki2/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
index afa42ae..8e88901 100644
--- a/jena-fuseki2/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
+++ b/jena-fuseki2/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
@@ -339,13 +339,13 @@ public abstract class SPARQL_Query extends SPARQL_Protocol
String timeoutParameter = action.request.getParameter("timeout") ;
if ( timeoutHeader != null ) {
try {
- desiredTimeout = (int)Float.parseFloat(timeoutHeader) * 1000 ;
+ desiredTimeout = (int)(Float.parseFloat(timeoutHeader) * 1000) ;
} catch (NumberFormatException e) {
throw new FusekiException("Timeout header must be a number", e) ;
}
} else if ( timeoutParameter != null ) {
try {
- desiredTimeout = (int)Float.parseFloat(timeoutParameter) * 1000 ;
+ desiredTimeout = (int)(Float.parseFloat(timeoutParameter) * 1000) ;
} catch (NumberFormatException e) {
throw new FusekiException("timeout parameter must be a number", e) ;
}