ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [11/16] incubator-ignite git commit: # Minor code cleanup.
Date Wed, 08 Apr 2015 09:17:22 GMT
# Minor code cleanup.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/76f8049c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/76f8049c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/76f8049c

Branch: refs/heads/ignite-694
Commit: 76f8049c2124b965d142f8dc781fad2ff20419d1
Parents: cbab850
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Wed Apr 8 14:38:10 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Wed Apr 8 14:38:10 2015 +0700

----------------------------------------------------------------------
 .../visor/commands/cache/VisorCacheClearCommand.scala   |  3 +--
 .../src/main/scala/org/apache/ignite/visor/visor.scala  | 12 ++++++------
 2 files changed, 7 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/76f8049c/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheClearCommand.scala
----------------------------------------------------------------------
diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheClearCommand.scala
b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheClearCommand.scala
index f012b19..379b566 100644
--- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheClearCommand.scala
+++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheClearCommand.scala
@@ -93,8 +93,7 @@ class VisorCacheClearCommand {
 
             case Some(s) if s.startsWith("@") =>
                 warn("Can't find cache variable with specified name: " + s,
-                    "Type 'cache' to see available cache variables."
-                )
+                    "Type 'cache' to see available cache variables.")
 
                 break()
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/76f8049c/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
----------------------------------------------------------------------
diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
index 5710458..33ba976 100644
--- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
+++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
@@ -1820,23 +1820,23 @@ object visor extends VisorTag {
     /**
      * Guards against invalid percent readings.
      *
-     * @param v Value in '%' to guard. Any value below `0` and greater than `100`
-     *      will return `<n/a>` string.
+     * @param v Value in '%' to guard.
+     * @return Percent as string. Any value below `0` and greater than `100` will return
`&lt;n/a&gt;` string.
      */
     def safePercent(v: Double): String = if (v < 0 || v > 100) NA else formatDouble(v)
+ " %"
 
     /** Convert to task argument. */
     def emptyTaskArgument[A](nid: UUID): VisorTaskArgument[Void] = new VisorTaskArgument(nid,
false)
 
-    def emptyTaskArgument[A](nids: Iterable[UUID]): VisorTaskArgument[Void] = new VisorTaskArgument(new
JavaHashSet(nids),
-      false)
+    def emptyTaskArgument[A](nids: Iterable[UUID]): VisorTaskArgument[Void]
+        = new VisorTaskArgument(new JavaHashSet(nids), false)
 
     /** Convert to task argument. */
     def toTaskArgument[A](nid: UUID, arg: A): VisorTaskArgument[A] = new VisorTaskArgument(nid,
arg, false)
 
     /** Convert to task argument. */
-    def toTaskArgument[A](nids: Iterable[UUID], arg: A): VisorTaskArgument[A] = new VisorTaskArgument(
-        new JavaHashSet(nids), arg, false)
+    def toTaskArgument[A](nids: Iterable[UUID], arg: A): VisorTaskArgument[A]
+        = new VisorTaskArgument(new JavaHashSet(nids), arg, false)
 
     def compute(nid: UUID): IgniteCompute = ignite.compute(ignite.cluster.forNodeId(nid)).withNoFailover()
 


Mime
View raw message