summaryrefslogtreecommitdiff
path: root/src/MESA_field_stat.cpp
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2018-09-03 20:43:38 +0800
committerzhengchao <[email protected]>2018-09-03 20:43:38 +0800
commitdf4d2d860d04e140ee18565147c45baa4e9d42b5 (patch)
tree9b79303d8d332390f927c0b7e804d1061b8aa014 /src/MESA_field_stat.cpp
parent963944fdaa645d738c20132a3ec3836fef2e3d5f (diff)
支持FS_OP_SUB
Diffstat (limited to 'src/MESA_field_stat.cpp')
-rw-r--r--src/MESA_field_stat.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/MESA_field_stat.cpp b/src/MESA_field_stat.cpp
index 3e93316..459541d 100644
--- a/src/MESA_field_stat.cpp
+++ b/src/MESA_field_stat.cpp
@@ -773,7 +773,10 @@ int FS_operate(screen_stat_handle_t handle,int id,int column_id,enum field_op op
break;
case FS_OP_SET:
atomic_set(&(target->current_value),value);
- break;
+ break;
+ case FS_OP_SUB:
+ atomic_sub(&(target->current_value),value);
+ break;
default:
return -1;
break;