aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/w32.c b/src/w32.c
index 677c37fcb5d..833ff4c7e4a 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -2003,6 +2003,13 @@ getloadavg (double loadavg[], int nelem)
2003 loadavg[elem] = avg; 2003 loadavg[elem] = avg;
2004 } 2004 }
2005 2005
2006 /* Always return at least one element, otherwise load-average
2007 returns nil, and Lisp programs might decide we cannot measure
2008 system load. For example, jit-lock-stealth-load's defcustom
2009 might decide that feature is "unsupported". */
2010 if (elem == 0)
2011 loadavg[elem++] = 0.09; /* < display-time-load-average-threshold */
2012
2006 return elem; 2013 return elem;
2007} 2014}
2008 2015