mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
ProcessList: save scan time in millisecond
The delay is saved in deciseconds, use a bigger resolution to avoid timing irregularities.
This commit is contained in:

committed by
BenBE

parent
26993d2d2b
commit
27b8d81ed2
@ -454,7 +454,7 @@ void Process_toggleTag(Process* this) {
|
||||
bool Process_isNew(const Process* this) {
|
||||
assert(this->processList);
|
||||
if (this->processList->scanTs >= this->seenTs) {
|
||||
return this->processList->scanTs - this->seenTs <= this->processList->settings->highlightDelaySecs;
|
||||
return this->processList->scanTs - this->seenTs <= 1000 * this->processList->settings->highlightDelaySecs;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user