diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2023-03-15 20:36:32 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2023-03-15 20:36:32 +0100 |
commit | 5eca20c9805ec489c6860c793ee66e82b79836d1 (patch) | |
tree | fb7a5856b53fb2fa195793efc7f8c38d185b9f42 /util/isensor.c | |
parent | 899cb94807a04dcd6e8b045c7d901d2852273345 (diff) | |
parent | d602f4fb516292c297072bd924289eea37b45fa2 (diff) |
Update upstream source from tag 'upstream/3.1.9'
Update to upstream version '3.1.9'
with Debian dir 230e687d678f3fcb6df41a4ed6de80795bdd1f93
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); } |