[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-web/release] Use proper call list syntax.



commit 41907268f1b86337961b7035984ee084a3bd6bab
Author: iwakeh <iwakeh@xxxxxxxxxxxxxx>
Date:   Tue Apr 3 07:32:38 2018 +0000

    Use proper call list syntax.
---
 src/main/java/org/torproject/metrics/web/RObjectGenerator.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/torproject/metrics/web/RObjectGenerator.java b/src/main/java/org/torproject/metrics/web/RObjectGenerator.java
index e3a2419..aea6db7 100644
--- a/src/main/java/org/torproject/metrics/web/RObjectGenerator.java
+++ b/src/main/java/org/torproject/metrics/web/RObjectGenerator.java
@@ -131,7 +131,7 @@ public class RObjectGenerator implements ServletContextListener {
     }
     String function = this.availableGraphs.get(requestedGraph)
         .getFunction();
-    queryBuilder.append(function).append("(");
+    queryBuilder.append(function).append(", ");
     StringBuilder imageFilenameBuilder =
         new StringBuilder(requestedGraph);
     for (Map.Entry<String, String[]> parameter
@@ -155,7 +155,7 @@ public class RObjectGenerator implements ServletContextListener {
     }
     imageFilenameBuilder.append(".").append(fileType);
     String imageFilename = imageFilenameBuilder.toString();
-    queryBuilder.append("path = '%1$s'))), '%1$s')");
+    queryBuilder.append("path = '%1$s')), '%1$s')");
     String query = queryBuilder.toString();
     File imageFile = new File(this.cachedGraphsDirectory + "/"
         + imageFilename);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits