ladybird/Userland/Utilities
Gunnar Beutner dd0a4b36fb Utilities: Fix division by zero
top crashes when sum_diff is zero.

CrashDaemon(15): --- Backtrace for thread #0 (TID 3052) ---
CrashDaemon(15): 0x96537f56: [/bin/top] main +0x4f6 (top.cpp:204)
CrashDaemon(15): 0x96538138: [/bin/top] _start +0x58 (crt0.cpp:58)
2021-04-17 09:25:06 +02:00
..
adjtime.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
allocate.cpp
aplay.cpp
arp.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
avol.cpp
base64.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
basename.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
beep.cpp
bt.cpp bt: add source file number integration 2021-03-15 16:08:31 +01:00
cal.cpp
cat.cpp
checksum.cpp checksum: Use new format functions 2021-03-25 10:58:26 +01:00
chgrp.cpp
chmod.cpp Userland: Remove superfluous headers 2021-03-11 12:32:53 +01:00
chown.cpp
chres.cpp
chroot.cpp
clear.cpp
CMakeLists.txt Utilities: Remove the "html" program 2021-04-13 18:24:47 +02:00
copy.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
cp.cpp cp: Use Core::File::copy_file_or_directory 2021-02-21 18:14:29 +01:00
CppParserTest.cpp
crash.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
cut.cpp Everywhere: Remove a bunch of redundant 'AK::' namespace prefixes 2021-02-26 16:59:56 +01:00
date.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
dd.cpp Utilites: Add dd 2021-03-29 11:02:02 +02:00
ddate.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
df.cpp df: Make 64 bit clean 2021-03-17 23:22:42 +01:00
dirname.cpp
disasm.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
disk_benchmark.cpp disk_benchmark: Modernize this code a little bit 2021-02-26 14:05:18 +01:00
dmesg.cpp
du.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
echo.cpp
env.cpp Userland: Add support for -S to env command 2021-04-12 14:06:24 +02:00
expr.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
false.cpp
fgrep.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
find.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
flock.cpp
fortune.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
functrace.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
gml-format.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
grep.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
gron.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
gunzip.cpp gunzip: Fail gracefully on bad input 2021-03-26 23:00:10 +01:00
gzip.cpp Utilities: Add gzip utility 2021-03-27 19:30:42 +01:00
head.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
hexdump.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
host.cpp
hostname.cpp
id.cpp
ifconfig.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
ini.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
jp.cpp jp: set input to stdin if there is no file specified and add 2021-03-24 20:34:26 +01:00
js.cpp LibJS: Make Errors fully spec compliant 2021-04-12 09:38:57 +02:00
keymap.cpp
kill.cpp
killall.cpp
ln.cpp
ls.cpp ls: ls will print directory name when listing multiple directories 2021-04-11 18:16:46 +02:00
lsirq.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
lsof.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
lspci.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
man.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
md.cpp
misbehaving-application.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
mkdir.cpp
mkfifo.cpp
mknod.cpp
mktemp.cpp LibC: Move S_* defines into <fcntl.h> 2021-04-11 09:51:20 +02:00
modload.cpp
modunload.cpp
more.cpp
mount.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
mv.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
nc.cpp Userland: Use uniform initialization instead of memset 2021-02-21 11:52:47 +01:00
nl.cpp
notify.cpp
nproc.cpp Userland: Add nproc utility 2021-04-12 14:06:24 +02:00
ntpquery.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
open.cpp open: Fix opening "." (again) 2021-03-07 17:39:58 +01:00
pape.cpp
passwd.cpp
paste.cpp
pidof.cpp
ping.cpp LibC+ping: Move internet_checksum to serenity header 2021-03-31 23:42:24 +02:00
pmap.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
PreprocessorTest.cpp LanguageServers/Cpp: Support jumping to declaration of preprocessor 2021-03-13 10:17:02 +01:00
printf.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
pro.cpp
profile.cpp profile: Add -a option as an alias for "-p -1" (all processes) 2021-03-21 16:02:11 +01:00
ps.cpp
purge.cpp
readelf.cpp LibC: Move S_* defines into <fcntl.h> 2021-04-11 09:51:20 +02:00
readlink.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
realpath.cpp
reboot.cpp
rm.cpp rm: Use Core::File::remove 2021-02-21 18:14:29 +01:00
rmdir.cpp
seq.cpp
shot.cpp Utilities: Add a delay option to the "shot" utility 2021-03-27 19:24:01 +01:00
shuf.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
shutdown.cpp
sleep.cpp Utilities/sleep: Go back to sleep if not interrupted by SIGINT 2021-03-31 23:49:26 +02:00
sort.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
stat.cpp Userland: Fix printf specifiers with off_t 2021-03-17 23:22:42 +01:00
strace.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
su.cpp
sync.cpp
syscall.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
sysctl.cpp Base: Add sysctl man page 2021-03-08 09:48:34 +01:00
tail.cpp
tar.cpp Libraries: Rename LibTar to LibArchive 2021-03-23 16:09:36 +01:00
tee.cpp LibC: Move S_* defines into <fcntl.h> 2021-04-11 09:51:20 +02:00
test-bindtodevice.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
test-compress.cpp test-compress: Initialize byte buffer with random data 2021-03-14 21:37:29 +01:00
test-crypto.cpp Everywhere: Remove a bunch of redundant 'AK::' namespace prefixes 2021-02-26 16:59:56 +01:00
test-fuzz.cpp Utilities: Provide fuzzers as a utility in serenity 2021-02-21 22:34:09 +01:00
test-js.cpp Everything: Add -Wnon-virtual-dtor flag 2021-04-15 20:57:13 +02:00
test-pthread.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
test-unveil.cpp
test-web.cpp LibWeb: Set Cookie header on <script> resource requests 2021-04-15 09:46:49 +02:00
test.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
test_efault.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
test_env.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
test_io.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
top.cpp Utilities: Fix division by zero 2021-04-17 09:25:06 +02:00
touch.cpp
tr.cpp
traceroute.cpp Utilities: Add simple traceroute utility 2021-03-31 23:42:24 +02:00
tree.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
true.cpp
truncate.cpp LibC: Move S_* defines into <fcntl.h> 2021-04-11 09:51:20 +02:00
tt.cpp
tty.cpp
umount.cpp
uname.cpp
uniq.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
unzip.cpp unzip: Use the new LibArchive Zip parser 2021-03-23 16:09:36 +01:00
uptime.cpp
useradd.cpp
userdel.cpp
utmpupdate.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
w.cpp
watch.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
wc.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
which.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
whoami.cpp
xargs.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
yes.cpp
zip.cpp Userland: Add simple zip utility 2021-03-23 16:09:36 +01:00