Skip to content

Commit

Permalink
Merge pull request #13 from archiver-appliance/v201
Browse files Browse the repository at this point in the history
Small bug fixes
  • Loading branch information
jacomago authored Jul 5, 2024
2 parents e7adcce + b5fcda8 commit 18e2dc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
id("maven-publish")
}

version = '0.2.0'
version = '0.2.1'

java {
toolchain {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public final GenMsgIterator getDataForPVs(
} else {
buf.append("?pv=").append(first_encoded);
}
for (var pvName : pvNames) {
for (var pvName : pvNames.subList(1, pvNames.size())) {
buf.append("&pv=").append(URLEncoder.encode(pvName, StandardCharsets.UTF_8));
}
buf.append("&from=").append(convertToUTC(startTime)).append("&to=").append(convertToUTC(endTime));
Expand All @@ -87,10 +87,6 @@ public final GenMsgIterator getDataForPVs(
return null;
}
InputStream is = response.body();
if (is.available() <= 0) {
logger.warning("Empty response from server when fetching data from " + getURL);
return null;
}
return new InputStreamBackedGenMsg(is);

} catch (Exception ex) {
Expand Down

0 comments on commit 18e2dc8

Please sign in to comment.