From: David ‘Bombe’ Roden Date: Thu, 10 Apr 2008 15:27:25 +0000 (+0000) Subject: fix wrong field name for the priority X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e1912a334ae93de51cc678d6d52c12bbe24f3621;p=jSite2.git fix wrong field name for the priority git-svn-id: http://trooper/svn/projects/jSite/trunk@695 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/util/fcp/ClientPut.java b/src/net/pterodactylus/util/fcp/ClientPut.java index bfbe210..99a7947 100644 --- a/src/net/pterodactylus/util/fcp/ClientPut.java +++ b/src/net/pterodactylus/util/fcp/ClientPut.java @@ -104,7 +104,7 @@ public class ClientPut extends FcpMessage { * The priority of the request */ public void setPriority(Priority priority) { - setField("Priority", String.valueOf(priority)); + setField("PriorityClass", String.valueOf(priority)); } /** diff --git a/src/net/pterodactylus/util/fcp/PersistentPut.java b/src/net/pterodactylus/util/fcp/PersistentPut.java index 4c7eb36..40843b9 100644 --- a/src/net/pterodactylus/util/fcp/PersistentPut.java +++ b/src/net/pterodactylus/util/fcp/PersistentPut.java @@ -107,7 +107,7 @@ public class PersistentPut extends BaseMessage { */ public Priority getPriority() { try { - return Priority.values()[Integer.valueOf(getField("Priority"))]; + return Priority.values()[Integer.valueOf(getField("PriorityClass"))]; } catch (NumberFormatException nfe1) { return Priority.unknown; }