Skip to content

Instantly share code, notes, and snippets.

@TheBits
Created February 6, 2020 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheBits/4dbe5c5a3f7309617ce9bd74fd03043d to your computer and use it in GitHub Desktop.
Save TheBits/4dbe5c5a3f7309617ce9bd74fd03043d to your computer and use it in GitHub Desktop.
git diff -- util
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
modified: util/datetime/cputimer.cpp
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@ util/datetime/cputimer.cpp:17 @
#include <sys/resource.h>
#include <sys/param.h>
#if !defined(_cygwin_) && !defined(_android_)
#include <sys/sysctl.h>
#endif
#else
#if defined(_win_)
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
modified: util/system/info.cpp
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@ util/system/info.cpp:31 @ static int getloadavg(double* loadavg, int nelem) {
}
#elif defined(_unix_) || defined(_darwin_)
#include <sys/types.h>
#include <sys/sysctl.h>
#endif
#include <util/generic/yexception.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment