</command>
<option>pid</option>
</term>
- <listitem>Amount of time that the process has been scheduled in user mode
+ <listitem>Amount of time that the process has been scheduled in user mode in seconds
<para /></listitem>
</varlistentry>
<varlistentry>
</command>
<option>pid</option>
</term>
- <listitem>Amount of time that the process has been scheduled in user mode
+ <listitem>Amount of time that the process has been scheduled in user mode in seconds
<para /></listitem>
</varlistentry>
<varlistentry>
buf = readfile(obj->data.s, &bytes_read, 1);
if(buf != NULL) {
sscanf(buf, "%*d %*s %*c %*d %*d %*d %*d %*d %*u %*u %*u %*u %*u %lu", &umtime);
- snprintf(p, p_max_size, "%lu", umtime);
+ snprintf(p, p_max_size, "%.2f", (float) umtime / 100);
free(buf);
}
}
buf = readfile(obj->data.s, &bytes_read, 1);
if(buf != NULL) {
sscanf(buf, "%*d %*s %*c %*d %*d %*d %*d %*d %*u %*u %*u %*u %*u %*u %lu", &kmtime);
- snprintf(p, p_max_size, "%lu", kmtime);
+ snprintf(p, p_max_size, "%.2f", (float) kmtime / 100);
free(buf);
}
}
buf = readfile(obj->data.s, &bytes_read, 1);
if(buf != NULL) {
sscanf(buf, "%*d %*s %*c %*d %*d %*d %*d %*d %*u %*u %*u %*u %*u %lu %lu", &umtime, &kmtime);
- snprintf(p, p_max_size, "%lu", umtime + kmtime);
+ snprintf(p, p_max_size, "%.2f", (float) (umtime + kmtime) / 100);
free(buf);
}
}