Sfoglia il codice sorgente

Minor coding style fixups

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Joachim Nilsson 5 anni fa
parent
commit
44771f6919
1 ha cambiato i file con 5 aggiunte e 6 eliminazioni
  1. 5
    6
      src/light.c

+ 5
- 6
src/light.c Vedi File

957
 
957
 
958
     uint64_t old_value = value;
958
     uint64_t old_value = value;
959
     value *= ctx->run_params.float_value;
959
     value *= ctx->run_params.float_value;
960
-    
960
+ 
961
     // Check that we actually de/increase value
961
     // Check that we actually de/increase value
962
-    if( value == old_value ) {
963
-        if( ctx->runs_params.float_value > 1 ) {
962
+    if(value == old_value)
963
+    {
964
+        if(ctx->runs_params.float_value > 1)
964
             value++;
965
             value++;
965
-        }
966
-        if( ctx->runs_params.float_value < 1 && value > 0 ) {
966
+        if(ctx->runs_params.float_value < 1 && value > 0)
967
             value--;
967
             value--;
968
-        }
969
     }
968
     }
970
 
969
 
971
     uint64_t mincap = _light_get_min_cap(ctx);
970
     uint64_t mincap = _light_get_min_cap(ctx);