diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2023-06-19 22:51:54 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2023-06-19 22:51:54 +0200 |
commit | a75ccaa9a52b79788eea5fccfe6c3fc3dfc5a81d (patch) | |
tree | fd9e7b4ead2ca237d5836c1ccceaf336310b39dc /util/isensor.c | |
parent | e33cb500a5cefab12062415dd12b6192b59e5ae5 (diff) | |
parent | 06b8b4b51519bfcf8d210eb199e2eab09e0c6a64 (diff) |
Merge branch 'release/debian/3.1.9-1'debian/3.1.9-1
Diffstat (limited to 'util/isensor.c')
-rw-r--r-- | util/isensor.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/util/isensor.c b/util/isensor.c index eded150..a3fc650 100644 --- a/util/isensor.c +++ b/util/isensor.c @@ -81,6 +81,7 @@ * 01/25/08 ARCress v2.7 allow float input with -u thresholds, * add -p persist logic for -u thresholds. * 09/20/19 ARCress v3.15 workaround for Pigeon Point bad sa in SDR + * 07/08/22 ARCress v3.19 fix -i get_idx_range to show last idx in range */ /*M* Copyright (c) 2002-2006 Intel Corporation. @@ -609,16 +610,17 @@ int get_idx_range(char *str) { // int i = 0; char *p; + char *p2; p = strchr(str,'-'); if (p == NULL) p = strchr(str,','); - if (p != NULL) { + if (p != NULL) { /*range*/ *p = 0; p++; sensor_idx1 = parse_idx(str); - sensor_idxN = parse_idx(p); - } else { + sensor_idxN = parse_idx(p) + 1; /*end if >=, so + 1*/ + } else { /*single sensor*/ sensor_idx1 = parse_idx(str); - sensor_idxN = sensor_idx1; + sensor_idxN = sensor_idx1; /*end if >=*/ } return(0); } |