Changes between Version 8 and Version 9 of Prefs2


Ignore:
Timestamp:
Sep 16, 2019, 3:38:41 PM (5 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Prefs2

    v8 v9  
    7979<term>
    8080   <item>item-name</item>
    81    <type>x</type>                  // 1 = greater than, 2 = nonzero, 3 = time range, 4 = app running
    82    [<not/>]
     81   <type>x</type>                  // greater_than, nonzero, time_range, app_running
    8382   [<thresh>x</thresh>]            // if greater than
    8483   [<time_range>...</time_range>]  // if time range
     
    130129{{{
    131130<computing_prefs>
    132    [ <static_params> ... </static_params> ]
    133131   <clause> ... </clause>
    134132   ...
     133   <static_params> ... <static_params>
    135134</computing_prefs>
    136135}}}
     
    139138X is a set of dynamic parameters, initially empty.
    140139The clauses are processed in order.
    141 For each clause C, we evaluate its condition.
    142 If the condition is true, we overlay X with C's dynamic parameters.
     140For each clause C, evaluate its condition.
     141If the condition is true, overlay X with C's dynamic parameters.
    143142At the conclusion, X is the dynamic parameters to be enforced by the client.
    144143
     
    151150<computing_prefs>
    152151   <clause>
    153       <condition></condition>
    154152      <dynamic_params>
    155153         <max_ncpus_pct>50</max_ncpus_pct>
     
    160158      <condition>
    161159         <term>
    162             <type>gt</type>
     160            <type>greater_than</type>
    163161            <item>idle_time</time>
    164162            <value>180</value>