You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 11:04:56 UTC

svn commit: r1132232 - /incubator/mesos/trunk/src/common/resources.hpp

Author: benh
Date: Sun Jun  5 09:04:56 2011
New Revision: 1132232

URL: http://svn.apache.org/viewvc?rev=1132232&view=rev
Log:
Updated a comment.

Modified:
    incubator/mesos/trunk/src/common/resources.hpp

Modified: incubator/mesos/trunk/src/common/resources.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/common/resources.hpp?rev=1132232&r1=1132231&r2=1132232&view=diff
==============================================================================
--- incubator/mesos/trunk/src/common/resources.hpp (original)
+++ incubator/mesos/trunk/src/common/resources.hpp Sun Jun  5 09:04:56 2011
@@ -32,6 +32,13 @@
 // addition, doing operations on two resources of the same type but
 // different names is a no-op.
 
+// Parsing resources can be done via the Resources::parse
+// routines. The syntax currently requires that resources are
+// separated by semicolons, which means on the command line the option
+// needs to be quoted (whitespace is ignored). A scalar is just a
+// number, a range is described like "[2-10, 34-56]", and a set like
+// "{a, b, c, d}".
+
 
 namespace mesos { namespace internal {