diff --git a/htroot/IndexCreateIndexingQueue_p.java b/htroot/IndexCreateIndexingQueue_p.java index 26ca76446d..f3a4e9010f 100644 --- a/htroot/IndexCreateIndexingQueue_p.java +++ b/htroot/IndexCreateIndexingQueue_p.java @@ -80,7 +80,7 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve switchboard.crawlQueues.errorURL.clearStack(); } if (post.containsKey("moreRejected")) { - showRejectedCount = Integer.parseInt(post.get("showRejected", "10")); + showRejectedCount = post.getInt("showRejected", 10); } if (post.containsKey("clearIndexingQueue")) { try { @@ -168,7 +168,7 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve if (showRejectedCount != switchboard.crawlQueues.errorURL.stackSize()) { prop.put("rejected_only-latest", "1"); prop.putNum("rejected_only-latest_num", showRejectedCount); - prop.putNum("rejected_only-latest_newnum", ((int) (showRejectedCount * 1.5))); + prop.put("rejected_only-latest_newnum", ((int) (showRejectedCount * 1.5))); }else{ prop.put("rejected_only-latest", "0"); }